mirror of
https://github.com/fmtlib/fmt.git
synced 2026-08-03 20:14:20 +02:00
Fix release workflow startup failure from insufficient permissions
The provenance job called the SLSA generator with contents: read, but the generator's upload-assets job declares contents: write. A reusable workflow's job permissions may not exceed the caller's, so GitHub failed the run at startup. Grant contents: write; the upload-assets job is still skipped at runtime since upload-assets is false.
This commit is contained in:
@@ -87,7 +87,10 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
actions: read
|
actions: read
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: read
|
# contents: write is required because the generator's (skipped)
|
||||||
|
# upload-assets job declares it, and a reusable workflow's job
|
||||||
|
# permissions may not exceed the caller's, or the run fails at startup.
|
||||||
|
contents: write
|
||||||
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0
|
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0
|
||||||
with:
|
with:
|
||||||
base64-subjects: ${{ needs.build.outputs.hashes }}
|
base64-subjects: ${{ needs.build.outputs.hashes }}
|
||||||
|
|||||||
Reference in New Issue
Block a user