Skip to content

Commit ca59cd9

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.
1 parent d7e3295 commit ca59cd9

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
@@ -261,8 +261,8 @@ jobs:
261261
if: startsWith(github.ref, 'refs/tags/payjoin-csharp-')
262262
environment: release
263263
permissions:
264-
id-token: write # OIDC: used by BOTH NuGet/login and attest-build-provenance
265-
attestations: write # actions/attest-build-provenance writes the attestation
264+
id-token: write # OIDC: used by BOTH NuGet/login and actions/attest
265+
attestations: write # actions/attest writes the attestation
266266
contents: read # needed only to check out the in-repo verify-tag-version action
267267
steps:
268268
- name: Checkout
@@ -305,7 +305,7 @@ jobs:
305305
- name: Attest build provenance (nupkg)
306306
# Attesting the .nupkg covers every RID native lib inside it; a consumer
307307
# runs: gh attestation verify <file>.nupkg -R payjoin/rust-payjoin
308-
uses: actions/attest-build-provenance@v4
308+
uses: actions/attest@v4
309309
with:
310310
subject-path: ${{ steps.locate.outputs.nupkg }}
311311

.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)