Skip to content

Commit d4ec8d5

Browse files
fix: add permissions for publish job (#12)
<!-- Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: * What is the current state of things and why does it need to change? * What is the solution your changes offer and how does it work? Are there any issues or other links reviewers should consult to understand this pull request better? For instance: * Fixes #12345 * See: #67890 -->
1 parent 07abdff commit d4ec8d5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
SLACK_WEBHOOK_URL:
99
required: true
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
publish-release:
1316
permissions:
@@ -35,8 +38,6 @@ jobs:
3538
3639
publish-npm-dry-run:
3740
needs: publish-release
38-
permissions:
39-
id-token: write
4041
runs-on: ubuntu-latest
4142
steps:
4243
- name: Checkout and setup environment
@@ -59,6 +60,7 @@ jobs:
5960
publish-npm:
6061
needs: publish-npm-dry-run
6162
permissions:
63+
contents: read
6264
id-token: write
6365
runs-on: ubuntu-latest
6466
environment: npm-publish

0 commit comments

Comments
 (0)