From fe7b1e9723e45d87925eb322dd8edb58f448743c Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 31 Jul 2024 06:05:23 +0900 Subject: [PATCH] Enable actions/attest-build-provenance https://github.com/actions/attest-build-provenance https://github.blog/changelog/2024-06-25-artifact-attestations-is-generally-available/ Signed-off-by: Akihiro Suda --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4c678c..7cac876 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,12 @@ jobs: release: runs-on: ubuntu-24.04 timeout-minutes: 20 + # The maximum access is "read" for PRs from public forked repos + # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token + permissions: + id-token: write + contents: read + attestations: write steps: - uses: actions/checkout@v4 with: @@ -41,6 +47,9 @@ jobs: The sha256sum of the SHA256SUMS file itself is \`${shasha}\` . EOF + - uses: actions/attest-build-provenance@v1 + with: + subject-path: _artifacts/* - name: "Create release" if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') env: