Skip to content

Commit 5b13688

Browse files
committed
fix(ci): add permissions to test job for zizmor security audit
- Add explicit 'contents: read' permission to test job - Fixes excessive-permissions warning from zizmor security audit
1 parent c4d17ce commit 5b13688

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ jobs:
44
test:
55
name: "Test on Node.js ${{ matrix.node-version }}"
66
runs-on: ubuntu-latest
7+
permissions:
8+
contents: read
79
strategy:
810
matrix:
911
node-version: [ 16, 18 ]
1012
steps:
1113
- name: checkout
12-
uses: actions/checkout@v2
14+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
15+
with:
16+
persist-credentials: false
1317
- name: setup Node.js ${{ matrix.node-version }}
14-
uses: actions/setup-node@v2
18+
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
1519
with:
1620
node-version: ${{ matrix.node-version }}
1721
- name: Install

0 commit comments

Comments
 (0)