Skip to content

Commit 5ec4395

Browse files
authored
Merge pull request #34 from github/jibrang/set-workflow-permissions
Set permissions for nodejs and publish workflows
2 parents fa0afcd + 0c8240f commit 5ec4395

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
publish-npm:
912
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)