Skip to content

Commit cf49b4c

Browse files
authored
Merge pull request #2 from xbow-engineering/chore/GHA-071556-stepsecurity-remediation
CI/CD Security Improvements with Step Security
2 parents 3f68f9b + 6570cdb commit cf49b4c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build_nodejs:
1013
runs-on: ubuntu-latest
@@ -14,10 +17,15 @@ jobs:
1417
node-version: [14.x, 16.x, 18.x, 20.x, 22.x]
1518

1619
steps:
17-
- uses: actions/checkout@v3
20+
- name: Harden the runner (Audit all outbound calls)
21+
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
22+
with:
23+
egress-policy: audit
24+
25+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1826

1927
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v3
28+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
2129
with:
2230
node-version: ${{ matrix.node-version }}
2331

0 commit comments

Comments
 (0)