Skip to content

Commit 0d8e57d

Browse files
Fix OIDC permissions for reusable workflow
Move permissions (id-token: write) to the caller workflow so the reusable workflow inherits the required OIDC token permission for AWS credential configuration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7165f23 commit 0d8e57d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test-suite.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ on:
77
required: true
88
type: string
99

10-
permissions:
11-
id-token: write
12-
contents: read
13-
1410
jobs:
1511
run:
1612
runs-on: ubuntu-latest

.github/workflows/test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
schedule:
66
- cron: '0 0 * * 0'
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
test:
1014
uses: ./.github/workflows/test-suite.yaml

0 commit comments

Comments
 (0)