Skip to content

Commit 1bdd0db

Browse files
authored
Merge pull request #355 from takumin/ci-build-provenance-attestations
CI: Enable actions/attest-build-provenance@v2
2 parents 9996a4e + bf1c767 commit 1bdd0db

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
jobs:
77
release:
88
runs-on: ubuntu-24.04
9+
# The maximum access is "read" for PRs from public forked repos
10+
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
11+
permissions:
12+
contents: write # for releases
13+
id-token: write # for provenances
14+
attestations: write # for provenances
915
steps:
1016
- uses: actions/checkout@v4
1117
with:
@@ -83,6 +89,12 @@ jobs:
8389
"https://github.com/${{ github.repository }}.git#${tag}"
8490
\`\`\`
8591
EOF
92+
- uses: actions/attest-build-provenance@v2
93+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
94+
with:
95+
subject-path: |
96+
/tmp/artifact/*
97+
/tmp/SHA256SUMS
8698
- name: "Create release"
8799
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
88100
env:

0 commit comments

Comments
 (0)