Skip to content

Commit db98d6b

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent ffacc91 commit db98d6b

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,36 @@ jobs:
77
lint:
88
runs-on: ubuntu-latest
99
steps:
10+
- name: Harden the runner (Audit all outbound calls)
11+
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
12+
with:
13+
egress-policy: audit
14+
1015
- name: Checkout
11-
uses: actions/checkout@v4
12-
- uses: actions/setup-go@v5
16+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
17+
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
1318
with:
1419
go-version-file: "go.mod"
1520
- name: Lint
16-
uses: magefile/mage-action@v1
21+
uses: magefile/mage-action@0a2bfd2ca891da3552ae39be755aecdce60ed1bc # v1.7.0
1722
with:
1823
version: latest
1924
args: lint
2025

2126
test:
2227
runs-on: ubuntu-latest
2328
steps:
24-
- uses: actions/checkout@v4
25-
- uses: actions/setup-go@v5
29+
- name: Harden the runner (Audit all outbound calls)
30+
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
31+
with:
32+
egress-policy: audit
33+
34+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
35+
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
2636
with:
2737
go-version-file: "go.mod"
2838
- name: test
29-
uses: magefile/mage-action@v1
39+
uses: magefile/mage-action@0a2bfd2ca891da3552ae39be755aecdce60ed1bc # v1.7.0
3040
with:
3141
version: latest
3242
args: test

0 commit comments

Comments
 (0)