Skip to content

Commit d75973a

Browse files
committed
Set permissions in GitHub workflows
1 parent c670d60 commit d75973a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
branches: [ master ]
1313

1414
jobs:
15+
permissions:
16+
contents: read
17+
pull-requests: read
18+
1519
build:
1620
runs-on: ubuntu-latest
1721

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
types: [created]
1010

1111
jobs:
12+
permissions:
13+
contents: read
14+
pull-requests: read
15+
1216
build:
1317
runs-on: ubuntu-latest
1418

0 commit comments

Comments
 (0)