Skip to content

Commit 0dfc99d

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

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/file-size-checker.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19+
- name: Harden the runner (Audit all outbound calls)
20+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
21+
with:
22+
egress-policy: audit
23+
1924
- name: Checkout code
20-
uses: actions/checkout@v4
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2126
with:
2227
fetch-depth: 0
2328

@@ -72,7 +77,7 @@ jobs:
7277
7378
- name: Update Status and Comment
7479
if: always()
75-
uses: actions/github-script@v7
80+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
7681
with:
7782
github-token: ${{ secrets.GITHUB_TOKEN }}
7883
script: |

0 commit comments

Comments
 (0)