Skip to content

Commit

Permalink
GitHub OIDC for AWS Creds in all workflows (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRN authored Dec 22, 2021
1 parent b0d92dc commit a6c4dca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ jobs:
Test_Integration_App:
name: Integration Test
runs-on: ubuntu-latest
permissions:
id-token: write
env:
ECR_REPO: public.ecr.aws/u0d6r4y4/aws-otel-dotnet-test
steps:
Expand All @@ -15,8 +17,6 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE_ARN }}
role-duration-seconds: 1200
aws-region: us-east-1
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/soak-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
issues: write
strategy:
fail-fast: false
Expand Down Expand Up @@ -88,8 +89,6 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE_ARN }}
role-duration-seconds: 21600 # 6 Hours
aws-region: ${{ env.AWS_DEFAULT_REGION }}
Expand Down

0 comments on commit a6c4dca

Please sign in to comment.