Skip to content

Commit cf35960

Browse files
committedAug 24, 2023
fix: add provenance
1 parent c94aa3e commit cf35960

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
 

‎.github/workflows/ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ concurrency:
3131
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
3232
cancel-in-progress: true
3333

34+
permissions:
35+
contents: read # for checkout
36+
3437
jobs:
3538
# log-the-inputs:
3639
# runs-on: ubuntu-latest
@@ -95,6 +98,11 @@ jobs:
9598
# echo "$NEEDS"
9699

97100
release:
101+
permissions:
102+
contents: write # to be able to publish a GitHub release
103+
issues: write # to be able to comment on released issues
104+
pull-requests: write # to be able to comment on released pull requests
105+
id-token: write # to enable use of OIDC for npm provenance
98106
needs: test
99107
# only run if opt-in during workflow_dispatch
100108
# needs.test.result: 'success' | 'failure' | 'skipped' | 'cancelled'

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"node": ">=18"
6969
},
7070
"publishConfig": {
71-
"access": "public"
71+
"access": "public",
72+
"provenance": true
7273
}
7374
}

0 commit comments

Comments
 (0)