Skip to content

Commit 9b24908

Browse files
authored
Merge pull request #2523 from AkihiroSuda/attestations
CI: enable actions/attest-build-provenance
2 parents 54e9244 + 39b3088 commit 9b24908

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ jobs:
4343
runs-on: ubuntu-20.04
4444
needs: artifacts-darwin
4545
timeout-minutes: 20
46+
# The maximum access is "read" for PRs from public forked repos
47+
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
48+
permissions:
49+
contents: write # for releases
50+
id-token: write # for provenances
51+
attestations: write # for provenances
4652
steps:
4753
- uses: actions/checkout@v4
4854
- uses: actions/download-artifact@v4
@@ -95,6 +101,10 @@ jobs:
95101
- - -
96102
Release manager: [ADD YOUR NAME HERE] (@[ADD YOUR GITHUB ID HERE])`
97103
EOF
104+
- uses: actions/attest-build-provenance@v1
105+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
106+
with:
107+
subject-path: _artifacts/*
98108
- name: "Create release"
99109
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
100110
env:

0 commit comments

Comments
 (0)