Skip to content

Commit af4d22c

Browse files
Copilotjonrohan
andcommitted
Add explicit permissions to GitHub Actions workflows
Co-authored-by: jonrohan <[email protected]>
1 parent e1d6d1b commit af4d22c

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-22.04
7+
permissions:
8+
contents: read
79
steps:
810
- uses: actions/checkout@v2
911
- 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)