Skip to content

Commit 3c2baba

Browse files
committed
replace obsolete actions/attest-build-provenance build action with actions/attest
1 parent 4d1e521 commit 3c2baba

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/build-smapi.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ jobs:
1212
build_and_release:
1313
runs-on: ubuntu-latest
1414
permissions:
15-
contents: write # for creating releases
16-
id-token: write # for creating attestations
17-
attestations: write
15+
contents: write # for creating releases
16+
id-token: write # for `actions/attest` ("to mint the OIDC token necessary to request a Sigstore signing certificate")
17+
attestations: write # for `actions/attest` ("to persist the attestation")
18+
artifact-metadata: write # for `actions/attest` ("to create the artifact storage record")
1819
steps:
1920
- name: Checkout code
2021
uses: actions/checkout@v6
@@ -96,7 +97,7 @@ jobs:
9697
if-no-files-found: 'error'
9798

9899
- name: Generate artifact attestations
99-
uses: actions/attest-build-provenance@v2
100+
uses: actions/attest@v4
100101
if: github.ref_type == 'tag'
101102
with:
102103
subject-path: bin/SMAPI-${{env.VERSION}}-installer.zip

0 commit comments

Comments
 (0)