Skip to content

Commit f3b7c8f

Browse files
committed
Use actions/attest directly for provenance
As of v4, actions/attest-build-provenance is just a wrapper around actions/attest, and its README recommends that new implementations use actions/attest directly. With no predicate inputs, actions/attest auto-generates the same SLSA build provenance, the subject-path input is unchanged, and the existing permissions already suffice, so this is a drop-in replacement.
1 parent 16e5f60 commit f3b7c8f

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/crates-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
- name: Package the crate
119119
run: cargo package --locked -p "$CRATE"
120120
- name: Attest build provenance
121-
uses: actions/attest-build-provenance@v4
121+
uses: actions/attest@v4
122122
with:
123123
subject-path: target/package/${{ needs.verify-tag.outputs.crate }}-${{ needs.verify-tag.outputs.version }}.crate
124124
- name: Authenticate to crates.io

.github/workflows/csharp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ jobs:
278278
# remove this line to publish without an approval gate. See README.
279279
environment: release
280280
permissions:
281-
id-token: write # OIDC: used by BOTH NuGet/login and attest-build-provenance
282-
attestations: write # actions/attest-build-provenance writes the attestation
281+
id-token: write # OIDC: used by BOTH NuGet/login and actions/attest
282+
attestations: write # actions/attest writes the attestation
283283
contents: read # needed only to check out the in-repo verify-tag-version action
284284
steps:
285285
- name: Checkout
@@ -326,7 +326,7 @@ jobs:
326326
# well, add a second attest step with subject-checksums pointing at the
327327
# SHA256SUMS produced in github-release. Not required — the nupkg is the
328328
# published unit.)
329-
uses: actions/attest-build-provenance@v4
329+
uses: actions/attest@v4
330330
with:
331331
subject-path: ${{ steps.locate.outputs.nupkg }}
332332

.github/workflows/javascript.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
environment: release
101101
permissions:
102102
id-token: write # OIDC: npm trusted publishing and its provenance statement
103-
attestations: write # actions/attest-build-provenance writes the attestation
103+
attestations: write # actions/attest writes the attestation
104104
contents: read # needed only to check out the in-repo verify-tag-version action
105105
steps:
106106
- name: Checkout
@@ -147,7 +147,7 @@ jobs:
147147

148148
- name: Attest build provenance (tarball)
149149
# A consumer runs: gh attestation verify <file>.tgz -R payjoin/rust-payjoin
150-
uses: actions/attest-build-provenance@v4
150+
uses: actions/attest@v4
151151
with:
152152
subject-path: ${{ steps.locate.outputs.tarball }}
153153

0 commit comments

Comments
 (0)