Skip to content

Commit b76fbac

Browse files
committed
ci: include provenance statement with release
Signed-off-by: Akshat Patel <akshat@live.ca>
1 parent 9287d7d commit b76fbac

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
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

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
"type": "git",
5858
"url": "git@github.com:carbon-design-system/carbon-components-angular.git"
5959
},
60+
"publishConfig": {
61+
"provenance": true
62+
},
6063
"license": "Apache-2.0",
6164
"author": "IBM",
6265
"peerDependencies": {

0 commit comments

Comments
 (0)