Skip to content

Commit

Permalink
workflows: Fix permissions for release-sources job (#100750)
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
tstellar authored Aug 7, 2024
1 parent ede49fa commit 82c2259
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ jobs:
release-sources:
name: Package Release Sources
permissions:
contents: read
id-token: write
attestations: write
needs:
Expand Down

0 comments on commit 82c2259

Please sign in to comment.