Skip to content

Commit 5f6dbe2

Browse files
[StepSecurity] Apply security best practices (#7)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>
1 parent d119607 commit 5f6dbe2

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/gofmt.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ jobs:
66
runs-on: ubuntu-latest
77

88
steps:
9+
- name: Harden the runner (Audit all outbound calls)
10+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
11+
with:
12+
egress-policy: audit
13+
914
- uses: actions/checkout@v5
1015
- uses: actions/setup-go@v5
1116
with:
1217
go-version: 'stable'
1318

14-
- uses: Jerome1337/gofmt-action@v1.0.5
19+
- uses: Jerome1337/gofmt-action@d5eabd189843f1d568286a54578159978b7c0fb1 # v1.0.5

.github/workflows/govulncheck.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
name: Run govulncheck
1616
runs-on: ubuntu-latest
1717
steps:
18+
- name: Harden the runner (Audit all outbound calls)
19+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
20+
with:
21+
egress-policy: audit
22+
1823
- uses: actions/checkout@v5
19-
- uses: golang/govulncheck-action@v1
24+
- uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4
2025

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@ on:
88
branches:
99
- master
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
test:
1316
name: Run Tests
1417
runs-on: ubuntu-latest
1518

1619
steps:
20+
- name: Harden the runner (Audit all outbound calls)
21+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
22+
with:
23+
egress-policy: audit
24+
1725
- uses: actions/checkout@v5
1826
- uses: actions/setup-go@v5
1927
with:

0 commit comments

Comments
 (0)