Skip to content

Commit 20b719b

Browse files
committed
Set permissions for nodejs and publish workflows
1 parent fa0afcd commit 20b719b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Node.js CI
22
on: [push]
3+
permissions:
4+
contents: read
35
jobs:
46
build:
57
runs-on: ubuntu-latest
@@ -14,3 +16,4 @@ jobs:
1416
- run: npm test
1517
env:
1618
CI: true
19+

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
contents: read
9+
packages: write
10+
metadata: read
11+
712
jobs:
813
publish-npm:
914
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)