Skip to content

Commit

Permalink
Better creds for full tests (#453)
Browse files Browse the repository at this point in the history
Adds OIDC setup for credentials
  • Loading branch information
pballandras authored Oct 25, 2022
1 parent e9369df commit d4e88ac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
jobs:
build:
name: Build
permissions:
id-token: write # required for AWS assume role
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -27,10 +29,14 @@ jobs:
wget https://releases.hashicorp.com/terraform/${{ matrix.terraform }}/terraform_${{ matrix.terraform }}_linux_amd64.zip -O /tmp/terraform.zip
sudo unzip -o -d /usr/local/bin/ /tmp/terraform.zip
- uses: coveooss/configure-aws-credentials-action@v1.7.0
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::043612128888:role/nrd-oss-terragrunt-github-actions-ci

- name: Run full tests on releases
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
run: |
make full-test
Expand Down

0 comments on commit d4e88ac

Please sign in to comment.