mirror of
https://github.com/fmtlib/fmt.git
synced 2026-06-15 00:16:15 +08: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:
parent
2de684d52d
commit
87bb05d3b2
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -87,7 +87,10 @@ jobs:
|
||||
permissions:
|
||||
actions: read
|
||||
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
|
||||
with:
|
||||
base64-subjects: ${{ needs.build.outputs.hashes }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user