Skip to content

Commit 78b74c6

Browse files
committed
Add required permissions to workflow callers
The calling workflows must explicitly declare the permissions needed by the reusable workflows they call.
1 parent 2ec67aa commit 78b74c6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/claude.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ on:
1010
pull_request_review:
1111
types: [submitted]
1212

13+
permissions:
14+
contents: read
15+
pull-requests: read
16+
issues: read
17+
id-token: write
18+
actions: read
19+
1320
jobs:
1421
claude:
1522
uses: OpenSwiftUIProject/github-workflows/.github/workflows/claude.yml@main

.github/workflows/issue-triage.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
issues:
55
types: [opened]
66

7+
permissions:
8+
contents: read
9+
issues: write
10+
711
jobs:
812
triage-issue:
913
uses: OpenSwiftUIProject/github-workflows/.github/workflows/issue-triage.yml@main

0 commit comments

Comments
 (0)