Skip to content

Commit 4c1a481

Browse files
Copilotjonrohan
andcommitted
Add explicit permissions to workflow files
Co-authored-by: jonrohan <54012+jonrohan@users.noreply.github.com>
1 parent d485f48 commit 4c1a481

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
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-22.04
12+
permissions:
13+
contents: read
1214
steps:
1315
- uses: actions/checkout@v2
1416
- name: Use Node.js 12.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)