Skip to content

Commit 0733412

Browse files
committed
feat(ci): package-registry provenance
1 parent 2eb9e0c commit 0733412

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
timeout-minutes: 15
2828
permissions:
2929
contents: read
30+
id-token: write
31+
attestations: write
3032
steps:
3133
- name: Checkout
3234
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
@@ -46,6 +48,12 @@ jobs:
4648
run: cargo test --lib
4749
- name: Verify crate can be packaged
4850
run: cargo package --list
51+
- name: Package crate
52+
run: cargo package
53+
- name: Attest crate provenance
54+
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2
55+
with:
56+
subject-path: 'target/package/*.crate'
4957
- name: Publish to crates.io (dry run)
5058
if: github.event.inputs.dry_run == 'true'
5159
run: cargo publish --dry-run

0 commit comments

Comments
 (0)