Skip to content

Commit eb2e1fb

Browse files
authored
Merge pull request #91 from github/copilot/define-workflow-permissions
Add explicit permissions to GitHub Actions workflows
2 parents 2e52d55 + 4c1a481 commit eb2e1fb

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)