Skip to content

Commit

Permalink
Add github token permission for OIDC
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Sherman <[email protected]>
  • Loading branch information
AlanSherman committed May 1, 2024
1 parent 7c33753 commit f7d8fed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
branches:
- main

permissions:
# These permissions are needed to interact with GitHub's OIDC Token endpoint to fetch/set the AWS deployment credentials.
id-token: write
contents: read

env:
AWS_REGION: us-east-1
AWS_PROFILE: lf-cla
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
- v1.*
- v2.*

permissions:
# These permissions are needed to interact with GitHub's OIDC Token endpoint to fetch/set the AWS deployment credentials.
id-token: write
contents: read

env:
AWS_REGION: us-east-1
AWS_PROFILE: lf-cla
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
- v1.*
- v2.*

permissions:
# These permissions are needed to interact with GitHub's OIDC Token endpoint to fetch/set the AWS deployment credentials.
id-token: write
contents: read

env:
AWS_REGION: us-east-1
AWS_PROFILE: lf-cla
Expand Down

0 comments on commit f7d8fed

Please sign in to comment.