Skip to content

Commit eb5cb5e

Browse files
authored
Merge pull request #133 from github/dg/actions-permissions
Specify permissions for actions
2 parents 8914023 + 4519747 commit eb5cb5e

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.github/workflows/nodejs.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
name: Node CI
22

3+
permissions:
4+
contents: read
5+
36
on: [push, pull_request]
47
jobs:
58
build:
69
runs-on: ubuntu-latest
710
steps:
8-
- uses: actions/checkout@v4
9-
- uses: actions/setup-node@v4
10-
with:
11-
node-version: 22
12-
cache: npm
13-
- name: npm install, build, and test
14-
run: |
15-
npm install
16-
npm run build
17-
npm test
18-
env:
19-
CI: true
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 22
15+
cache: npm
16+
- name: npm install, build, and test
17+
run: |
18+
npm install
19+
npm run build
20+
npm test
21+
env:
22+
CI: true

.github/workflows/publish-pages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)