Skip to content

Commit

Permalink
infra: unset env vars in same step (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Sep 20, 2024
1 parent f3b145e commit 019041e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,6 @@ jobs:
run: make integration_tests
working-directory: ${{ inputs.working-directory }}

- name: Remove environment variables
run: |
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_REGION
# Verify they are removed
if [ -z "$AWS_ACCESS_KEY_ID" ]; then echo "AWS_ACCESS_KEY_ID is unset"; else echo "AWS_ACCESS_KEY_ID is still set"; fi
- name: Get minimum versions
working-directory: ${{ inputs.working-directory }}
id: min-version
Expand All @@ -197,6 +189,14 @@ jobs:
MIN_VERSIONS: ${{ steps.min-version.outputs.min-versions }}
run: |
poetry run pip install $MIN_VERSIONS
# unset AWS credentials to ensure they are not used in snapshots
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_REGION
# Verify they are removed
if [ -z "$AWS_ACCESS_KEY_ID" ]; then echo "AWS_ACCESS_KEY_ID is unset"; else echo "AWS_ACCESS_KEY_ID is still set"; fi
make tests
working-directory: ${{ inputs.working-directory }}

Expand Down

0 comments on commit 019041e

Please sign in to comment.