Skip to content

Commit 0abce0b

Browse files
[StepSecurity] Apply security best practices (#389)
Signed-off-by: StepSecurity Bot <[email protected]> Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>
1 parent 20f40dd commit 0abce0b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/validate-structure.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,18 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21+
- name: Harden the runner (Audit all outbound calls)
22+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
23+
with:
24+
egress-policy: audit
25+
2126
- name: Checkout code
22-
uses: actions/checkout@v4
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2328
with:
2429
fetch-depth: 0 # Need full history to detect changed files
2530

2631
- name: Setup Node.js
27-
uses: actions/setup-node@v4
32+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2833
with:
2934
node-version: '18'
3035
cache: 'npm'
@@ -36,7 +41,7 @@ jobs:
3641

3742
- name: Get changed files
3843
id: changed-files
39-
uses: tj-actions/changed-files@v44
44+
uses: tj-actions/changed-files@2d756ea4c53f7f6b397767d8723b3a10a9f35bf2 # v44.0.0
4045
with:
4146
files: |
4247
mainnet/**
@@ -52,7 +57,7 @@ jobs:
5257
5358
- name: Comment PR on validation failure
5459
if: failure() && github.event_name == 'pull_request'
55-
uses: actions/github-script@v7
60+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
5661
with:
5762
script: |
5863
github.rest.issues.createComment({

0 commit comments

Comments
 (0)