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'.
This commit is contained in:
Tom Stellard 2024-08-07 14:19:22 -07:00 committed by GitHub
parent ede49fa5f3
commit 82c2259aeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,6 +101,7 @@ jobs:
release-sources:
name: Package Release Sources
permissions:
contents: read
id-token: write
attestations: write
needs: