Skip to content

Commit

Permalink
Add npm package provenance support (#256)
Browse files Browse the repository at this point in the history
Enable supply chain security through npm provenance attestation.
- Configure GitHub Actions workflow for secure publishing
- Enable automatic provenance generation during npm publish
- Add integrity verification through Sigstore transparency logs
  • Loading branch information
pupapaik authored Oct 31, 2024
1 parent 877d251 commit 29955fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
id-token: write # Required for provenance
packages: write # Required for publishing

strategy:
matrix:
Expand Down Expand Up @@ -67,7 +71,7 @@ jobs:
run: yarn build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 29955fd

Please sign in to comment.