Skip to content

Commit ebc1627

Browse files
committed
workflows: Fix permissions for release-sources job
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'.
1 parent f94df98 commit ebc1627

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
@@ -89,6 +89,7 @@ jobs:
8989
release-sources:
9090
name: Package Release Sources
9191
permissions:
92+
contents: read
9293
id-token: write
9394
attestations: write
9495
needs:

0 commit comments

Comments
 (0)