Skip to content

Commit f417cbf

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity
1 parent 931558b commit f417cbf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/changed-files-vulnerability-without-hr.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,19 @@ jobs:
1414
runs-on: ubuntu-latest
1515
name: Test changed-files
1616
steps:
17-
- uses: actions/checkout@v4
17+
- name: Harden the runner (Audit all outbound calls)
18+
uses: step-security/harden-runner@v2
19+
with:
20+
egress-policy: audit
21+
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1823
with:
1924
fetch-depth: 0
2025

2126
# Example 1
2227
- name: Get changed files
2328
id: changed-files
24-
uses: tj-actions/changed-files@v40
29+
uses: tj-actions/changed-files@56284d80811fb5963a972b438f2870f175e5b7c8 # v40.2.3
2530

2631
- name: List all changed files
2732
run: |

0 commit comments

Comments
 (0)