Skip to content

Commit

Permalink
workflows: Fix permissions for release-sources job
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 committed Jul 26, 2024
1 parent f94df98 commit ebc1627
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 @@ -89,6 +89,7 @@ jobs:
release-sources:
name: Package Release Sources
permissions:
contents: read
id-token: write
attestations: write
needs:
Expand Down

0 comments on commit ebc1627

Please sign in to comment.