Skip to content

Commit

Permalink
Add required token permissions
Browse files Browse the repository at this point in the history
#7

Looks like this permissions object is required.

aws-actions/configure-aws-credentials#271 (comment)

Also shown in the second code sample here:

https://github.com/aws-actions/configure-aws-credentials#usage
  • Loading branch information
douglasnaphas committed Aug 9, 2023
1 parent 9636e9d commit 0c227b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
npm test
test-and-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -74,7 +77,7 @@ jobs:
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::105379901447:role/sVcmas-bbd933-role-GitHubRoleECD51173-89CYB55967ID
aws-region: us-east-1
aws-region: us-west-2
- name: Deploy the app stack to the test account
working-directory: infra
run: |
Expand Down

0 comments on commit 0c227b2

Please sign in to comment.