Skip to content

Commit 2f698e4

Browse files
authored
fix(release): allow contents write permission, run attestation after release created (#9550)
fix(release): allow contents write permission, run attestation after release published
1 parent e22a9ec commit 2f698e4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
release:
7070
permissions:
7171
id-token: write
72-
contents: read
72+
contents: write
7373
attestations: write
7474
name: ${{ matrix.target }} (${{ matrix.runner }})
7575
runs-on: ${{ matrix.runner }}
@@ -163,15 +163,6 @@ jobs:
163163
echo "${name}_bin_path=${bin}" >> $GITHUB_ENV
164164
done
165165
166-
- name: Binaries attestation
167-
uses: actions/attest-build-provenance@v2
168-
with:
169-
subject-path: |
170-
${{ env.anvil_bin_path }}
171-
${{ env.cast_bin_path }}
172-
${{ env.chisel_bin_path }}
173-
${{ env.forge_bin_path }}
174-
175166
- name: Archive binaries
176167
id: artifacts
177168
env:
@@ -228,6 +219,15 @@ jobs:
228219
${{ steps.artifacts.outputs.file_name }}
229220
${{ steps.man.outputs.foundry_man }}
230221
222+
- name: Binaries attestation
223+
uses: actions/attest-build-provenance@v2
224+
with:
225+
subject-path: |
226+
${{ env.anvil_bin_path }}
227+
${{ env.cast_bin_path }}
228+
${{ env.chisel_bin_path }}
229+
${{ env.forge_bin_path }}
230+
231231
# If this is a nightly release, it also updates the release
232232
# tagged `nightly` for compatibility with `foundryup`
233233
- name: Update nightly release

0 commit comments

Comments
 (0)