Skip to content

Commit 6ecca36

Browse files
authored
Merge pull request #2798 from Akshat55/provenance
ci: Publish packages to npm with provenance statements
2 parents 00e300f + ba939c1 commit 6ecca36

File tree

3 files changed

+1827
-2716
lines changed

3 files changed

+1827
-2716
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@ on:
88
# Allows us to run this workflow manually from the Actions tab
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read # for checkout
13+
1114
jobs:
1215
# Single deploy job since we're just deploying
1316
publish:
1417
environment:
1518
name: Deploy
1619
runs-on: ubuntu-latest
20+
permissions:
21+
contents: write # to be able to publish a GitHub release
22+
issues: write # to be able to comment on released issues
23+
pull-requests: write # to be able to comment on pull requests
24+
id-token: write # to enable use of ODIC for npm provenance
1725
steps:
1826
# Checkout to branch
1927
- name: Checkout

0 commit comments

Comments
 (0)