Skip to content

Commit d76aaed

Browse files
tstellarllvmbot
authored andcommitted
workflows: Fix permissions for release-sources job (#100750)
For reusable workflows, the called workflow cannot upgrade it's permissions, and since the default permission is none, we need to explicitly declare 'contents: read' when calling the release-sources workflow. Fixes the error: The workflow is requesting 'contents: read', but is only allowed 'contents: none'. (cherry picked from commit 82c2259)
1 parent d033ae1 commit d76aaed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release-tasks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
release-sources:
100100
name: Package Release Sources
101101
permissions:
102+
contents: read
102103
id-token: write
103104
attestations: write
104105
needs:

0 commit comments

Comments
 (0)