Skip to content

Commit eea8e4d

Browse files
tstellartru
authored andcommitted
workflows: Fix permissions for release-sources job (llvm#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 b2de372 commit eea8e4d

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
@@ -101,6 +101,7 @@ jobs:
101101
release-sources:
102102
name: Package Release Sources
103103
permissions:
104+
contents: read
104105
id-token: write
105106
attestations: write
106107
needs:

0 commit comments

Comments
 (0)