Skip to content

Commit

Permalink
fix(release): allow contents write permission, run attestation after …
Browse files Browse the repository at this point in the history
…release created (#9550)

fix(release): allow contents write permission, run attestation after release published
  • Loading branch information
grandizzy authored Dec 13, 2024
1 parent e22a9ec commit 2f698e4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
release:
permissions:
id-token: write
contents: read
contents: write
attestations: write
name: ${{ matrix.target }} (${{ matrix.runner }})
runs-on: ${{ matrix.runner }}
Expand Down Expand Up @@ -163,15 +163,6 @@ jobs:
echo "${name}_bin_path=${bin}" >> $GITHUB_ENV
done
- name: Binaries attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: |
${{ env.anvil_bin_path }}
${{ env.cast_bin_path }}
${{ env.chisel_bin_path }}
${{ env.forge_bin_path }}
- name: Archive binaries
id: artifacts
env:
Expand Down Expand Up @@ -228,6 +219,15 @@ jobs:
${{ steps.artifacts.outputs.file_name }}
${{ steps.man.outputs.foundry_man }}
- name: Binaries attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: |
${{ env.anvil_bin_path }}
${{ env.cast_bin_path }}
${{ env.chisel_bin_path }}
${{ env.forge_bin_path }}
# If this is a nightly release, it also updates the release
# tagged `nightly` for compatibility with `foundryup`
- name: Update nightly release
Expand Down

0 comments on commit 2f698e4

Please sign in to comment.