Skip to content

Commit b83bcf6

Browse files
authored
ci: add build provenance attestation for dist/index.js (#31)
Signed-off-by: yuriyryabikov <22548029+kurok@users.noreply.github.com>
1 parent 79a4a79 commit b83bcf6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/package.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ jobs:
99
package:
1010
name: Package distribution files
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
id-token: write
15+
attestations: write
1216
steps:
1317
- name: Checkout
1418
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -20,6 +24,10 @@ jobs:
2024
run: npm run lint
2125
- name: Package
2226
run: npm run package
27+
- name: Attest dist provenance
28+
uses: actions/attest-build-provenance@96b4a1ef7235a096b17240c259729fdd70c83d45 # v2
29+
with:
30+
subject-path: dist/index.js
2331
- name: Commit
2432
run: |
2533
git config --global user.name "GitHub Actions"

0 commit comments

Comments
 (0)