Skip to content

Commit 8a414b9

Browse files
authored
Update permissions for build job in workflow
1 parent d560bc2 commit 8a414b9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/build-ami.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ on:
1010
jobs:
1111
validate:
1212
runs-on: ubuntu-latest
13-
permissions:
14-
id-token: write # Required for OIDC authentication
15-
contents: read # Required to check out the repository
1613

1714
steps:
1815
- name: Checkout code
@@ -31,6 +28,10 @@ jobs:
3128

3229
build:
3330
runs-on: ubuntu-latest
31+
permissions:
32+
id-token: write # Required for OIDC authentication
33+
contents: read # Required to check out the repository
34+
3435
needs: validate
3536
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
3637
steps:

0 commit comments

Comments
 (0)