Skip to content

Commit 6a1a8d3

Browse files
Copilotjonrohan
andcommitted
Add explicit permissions to workflow files
Co-authored-by: jonrohan <[email protected]>
1 parent 9fea93f commit 6a1a8d3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on: push
44
jobs:
55
build:
66
runs-on: ubuntu-latest
7+
permissions:
8+
contents: read
79
steps:
810
- uses: actions/checkout@v2
911
- name: Use Node.js 18.x

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
publish-npm:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
1012
steps:
1113
- uses: actions/checkout@v3
1214
- uses: actions/setup-node@v3

0 commit comments

Comments
 (0)