Skip to content

Commit c0c4063

Browse files
committed
ci: generate provenance statement on release to increase security
1 parent 1eb14b4 commit c0c4063

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
name: Build & Publish @latest Release
1313
if: github.repository == 'svecosystem/mode-watcher'
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
id-token: write
1518
steps:
1619
- uses: actions/checkout@v4
1720
with:
@@ -33,5 +36,6 @@ jobs:
3336
title: "chore(release): version package"
3437
publish: pnpm ci:publish
3538
env:
39+
NPM_CONFIG_PROVENANCE: true
3640
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3741
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)