From 8df58df75718f63e57dcf2f18a21bc2946082671 Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Wed, 23 Mar 2022 09:40:23 +0100 Subject: [PATCH] use secret for db passwords in tests (#1381) --- .github/workflows/ci_bats_mariadb.yaml | 6 +++--- .github/workflows/ci_bats_mysql.yaml | 6 +++--- .github/workflows/ci_bats_postgres.yaml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci_bats_mariadb.yaml b/.github/workflows/ci_bats_mariadb.yaml index c48c73f74..be313a878 100644 --- a/.github/workflows/ci_bats_mariadb.yaml +++ b/.github/workflows/ci_bats_mariadb.yaml @@ -17,7 +17,7 @@ jobs: mariadb: image: mariadb:latest env: - MYSQL_ROOT_PASSWORD: mysql + MYSQL_ROOT_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} ports: - 3306:3306 steps: @@ -50,7 +50,7 @@ jobs: DB_BACKEND: mysql MYSQL_HOST: 127.0.0.1 MYSQL_PORT: 3306 - MYSQL_PASSWORD: mysql + MYSQL_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} MYSQL_USER: root - name: "BATS: run tests" @@ -59,5 +59,5 @@ jobs: DB_BACKEND: mysql MYSQL_HOST: 127.0.0.1 MYSQL_PORT: 3306 - MYSQL_PASSWORD: mysql + MYSQL_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} MYSQL_USER: root diff --git a/.github/workflows/ci_bats_mysql.yaml b/.github/workflows/ci_bats_mysql.yaml index 9739ee9ed..9571d11e1 100644 --- a/.github/workflows/ci_bats_mysql.yaml +++ b/.github/workflows/ci_bats_mysql.yaml @@ -17,7 +17,7 @@ jobs: mariadb: image: mysql:latest env: - MYSQL_ROOT_PASSWORD: mysql + MYSQL_ROOT_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} ports: - 3306:3306 steps: @@ -50,7 +50,7 @@ jobs: DB_BACKEND: mysql MYSQL_HOST: 127.0.0.1 MYSQL_PORT: 3306 - MYSQL_PASSWORD: mysql + MYSQL_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} MYSQL_USER: root - name: "BATS: run tests" @@ -59,5 +59,5 @@ jobs: DB_BACKEND: mysql MYSQL_HOST: 127.0.0.1 MYSQL_PORT: 3306 - MYSQL_PASSWORD: mysql + MYSQL_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} MYSQL_USER: root diff --git a/.github/workflows/ci_bats_postgres.yaml b/.github/workflows/ci_bats_postgres.yaml index fad85e7f6..ebb941b73 100644 --- a/.github/workflows/ci_bats_postgres.yaml +++ b/.github/workflows/ci_bats_postgres.yaml @@ -17,7 +17,7 @@ jobs: postgres: image: postgres:latest env: - POSTGRES_PASSWORD: postgres + POSTGRES_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} ports: - 5432:5432 options: >- @@ -55,7 +55,7 @@ jobs: DB_BACKEND: postgres POSTGRES_HOST: 127.0.0.1 POSTGRES_PORT: 5432 - POSTGRES_PASSWORD: postgres + POSTGRES_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} POSTGRES_USER: postgres - name: "BATS: run tests" @@ -64,5 +64,5 @@ jobs: DB_BACKEND: postgres POSTGRES_HOST: 127.0.0.1 POSTGRES_PORT: 5432 - POSTGRES_PASSWORD: postgres + POSTGRES_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} POSTGRES_USER: postgres