Skip to content

Commit

Permalink
fix secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Dec 1, 2023
1 parent 3dba8b2 commit c5d994a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/integration-tests-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ jobs:
- name: Determine env variables
run: |
if [ "${{ inputs.environment }}" == 'staging' ]; then
echo "SECRET=${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}" >> "$GITHUB_ENV"
echo "KEY=${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}" >> "$GITHUB_ENV"
echo "KEY=${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}" >> "$GITHUB_ENV"
echo "SECRET=${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}" >> "$GITHUB_ENV"
else
echo "SECRET=${{ secrets.FIREBOLT_CLIENT_ID_DEV_NEW_IDN }}" >> "$GITHUB_ENV"
echo "KEY=${{ secrets.FIREBOLT_CLIENT_SECRET_DEV_NEW_IDN }}" >> "$GITHUB_ENV"
echo "KEY=${{ secrets.FIREBOLT_CLIENT_ID_DEV_NEW_IDN }}" >> "$GITHUB_ENV"
echo "SECRET=${{ secrets.FIREBOLT_CLIENT_SECRET_DEV_NEW_IDN }}" >> "$GITHUB_ENV"
fi
- name: Keep environment name in the summary
Expand All @@ -61,9 +61,9 @@ jobs:
id: setup
uses: firebolt-db/integration-testing-setup@v2
with:
firebolt-client-id: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
firebolt-client-secret: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
account: "developer"
firebolt-client-id: ${{ env.KEY }}
firebolt-client-secret: ${{ env.SECRET }}
account: "automation"
api-endpoint: "api.${{ inputs.environment }}.firebolt.io"

- name: Restore cached failed tests
Expand All @@ -76,12 +76,12 @@ jobs:

- name: Run integration tests
env:
USER_NAME: ${{ env.SECRET }}
PASSWORD: ${{ env.KEY }}
USER_NAME: ${{ env.KEY }}
PASSWORD: ${{ env.SECRET }}
DATABASE_NAME: ${{ steps.setup.outputs.database_name }}
ENGINE_NAME: ${{ steps.setup.outputs.engine_name }}
API_ENDPOINT: "api.${{ inputs.environment }}.firebolt.io"
ACCOUNT_NAME: "developer"
ACCOUNT_NAME: "automation"
run: |
pytest --last-failed -o log_cli=true -o log_cli_level=INFO tests/functional/ --alluredir=allure-results
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/jaffle-shop-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ jobs:
id: setup
uses: firebolt-db/integration-testing-setup@v2
with:
firebolt-client-id: ${{ secrets.KEY }}
firebolt-client-secret: ${{ secrets.SECRET }}
account: "developer"
firebolt-client-id: ${{ env.KEY }}
firebolt-client-secret: ${{ env.SECRET }}
account: "automation"
api-endpoint: "api.${{ inputs.environment }}.firebolt.io"


Expand All @@ -80,7 +80,7 @@ jobs:
DATABASE_NAME: ${{ steps.setup.outputs.database_name }}
ENGINE_NAME: ${{ steps.setup.outputs.engine_name }}
API_ENDPOINT: "api.${{ inputs.environment }}.firebolt.io"
ACCOUNT_NAME: "developer"
ACCOUNT_NAME: "automation"
DBT_PROFILES_DIR: "../dbt-firebolt/.github/workflows/jaffle_shop"
working-directory: jaffle-shop
run:
Expand Down

0 comments on commit c5d994a

Please sign in to comment.