Skip to content

Commit 448dfb6

Browse files
Add explicit permissions to GitHub Actions workflow files
Co-authored-by: francinelucca <[email protected]>
1 parent a8d82ab commit 448dfb6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Node CI
22

33
on: push
4+
5+
permissions:
6+
contents: read
7+
48
jobs:
59
build:
610
runs-on: ubuntu-latest

.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)