Skip to content

Commit fe9cbff

Browse files
committed
ci: scope permissions to job
1 parent 0ab6f81 commit fe9cbff

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ on:
55
branches:
66
- main
77

8-
permissions:
9-
contents: write # Needed to update Releases in GitHub after publishing
10-
pull-requests: write # Needed to create and update pull requests
11-
id-token: write # https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
12-
138
jobs:
149
publish:
1510
runs-on: ubuntu-latest
1611
environment: publish
12+
permissions:
13+
contents: write # Needed to update Releases in GitHub after publishing
14+
pull-requests: write # Needed to create and update pull requests
15+
id-token: write # https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
1716

1817
steps:
1918
- name: Checkout

0 commit comments

Comments
 (0)