Skip to content

Commit

Permalink
Merge pull request #6156 from TheThingsNetwork/fix/skip-login-on-fork-v2
Browse files Browse the repository at this point in the history
Fix CI usage of secrets
  • Loading branch information
adriansmares authored Apr 14, 2023
2 parents 2a4ea4b + 4fe8fa9 commit bcbda8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ jobs:
entrypoint: /usr/bin/createdb
args: -h postgres -U root ttn_lorawan_is_store_test
- name: Configure AWS Credentials
if: "${{ secrets.AWS_REGION != '' }}"
if: "${{ env.AWS_REGION != '' }}"
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-region: "${{ secrets.AWS_REGION }}"
role-to-assume: "arn:aws:iam::${{ secrets.AWS_USER_ID }}:role/${{ secrets.AWS_ROLE_NAME }}"
role-session-name: "${{ secrets.AWS_ROLE_NAME }}-${{ github.job }}-${{ github.run_id }}"
env:
AWS_REGION: "${{ secrets.AWS_REGION }}"
- name: Check out code
uses: actions/checkout@v3
- name: Install Go and Dependencies
Expand Down

0 comments on commit bcbda8a

Please sign in to comment.