Skip to content

Commit 1ae29f3

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
1 parent 952de12 commit 1ae29f3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
name: Test
22
on: [push, pull_request]
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58
test:
69
runs-on: ubuntu-latest
710

811
steps:
9-
- uses: actions/checkout@v2
12+
- name: Harden the runner (Audit all outbound calls)
13+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
14+
with:
15+
egress-policy: audit
16+
17+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
1018
- run: npm cit

0 commit comments

Comments
 (0)