Skip to content

Commit

Permalink
fix: GitHub Actions ID Token permissions for AWS IAM Role access (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenthsh authored Mar 15, 2023
1 parent 6f37ee0 commit f23d16d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/templates/.github/workflows/fogg_ci.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ concurrency:
jobs:
fogg-apply:
runs-on: ubuntu-latest
{{- if not (eq (len $githubActionsCI.DefaultAWSIAMRoleName) 0) }}
permissions:
# required for GH Actions -> OIDC -> AWS
id-token: write
# required to push fixes back to repo
contents: write{{ end }}
steps:
- uses: actions/checkout@v3
with:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions testdata/v2_full_yaml/.github/workflows/fogg_ci.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f23d16d

Please sign in to comment.