Skip to content

Commit c382671

Browse files
authored
ci: harden nodejs.yml permissions (#233)
1 parent a3fd3ca commit c382671

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,15 @@ on:
1010
- master
1111
- next
1212

13+
permissions:
14+
contents: read # to fetch code (actions/checkout)
15+
1316
jobs:
1417
lint:
18+
permissions:
19+
contents: read # to fetch code (actions/checkout)
20+
pull-requests: read # to get commits in PR (wagoid/commitlint-github-action)
21+
1522
name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}
1623

1724
env:

0 commit comments

Comments
 (0)