Skip to content

Commit ca8ad93

Browse files
authored
Set permissions on GitHub workflows
1 parent 47d6139 commit ca8ad93

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
test:
1010
runs-on: ubuntu-latest
1111

12+
permissions:
13+
contents: read
14+
1215
strategy:
1316
matrix:
1417
node-version: [18.x, 20.x, 22.x]

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
test:
99
runs-on: ubuntu-latest
1010

11+
permissions:
12+
contents: read
13+
1114
strategy:
1215
matrix:
1316
node-version: [18.x, 20.x, 22.x]
@@ -32,6 +35,10 @@ jobs:
3235
publish-npm:
3336
needs: test
3437
runs-on: ubuntu-latest
38+
39+
permissions:
40+
contents: read
41+
3542
steps:
3643
- uses: actions/checkout@v2
3744
- uses: actions/setup-node@v1

0 commit comments

Comments
 (0)