Skip to content

Commit b3bef9e

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

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/workflows/workflow.yaml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,19 @@ jobs:
3030
mongo3:
3131
image: mongo:5
3232
steps:
33-
- uses: actions/checkout@v4
34-
- uses: actions/setup-go@v5
33+
- name: Harden the runner (Audit all outbound calls)
34+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
35+
with:
36+
egress-policy: audit
37+
38+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
39+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3540
with:
3641
go-version: ${{ env.GO_VERSION }}
3742
- run: go install gotest.tools/gotestsum@latest
3843
- run: |
3944
~/go/bin/gotestsum --junitfile gotestsum-report.xml ./...
40-
- uses: mikepenz/action-junit-report@v4
45+
- uses: mikepenz/action-junit-report@db71d41eb79864e25ab0337e395c352e84523afe # v4.3.1
4146
if: success() || failure()
4247
with:
4348
report_paths: "gotestsum-report.xml"
@@ -46,15 +51,25 @@ jobs:
4651
lint:
4752
runs-on: ubuntu-latest
4853
steps:
49-
- uses: actions/checkout@v4
50-
- uses: actions/setup-go@v5
54+
- name: Harden the runner (Audit all outbound calls)
55+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
56+
with:
57+
egress-policy: audit
58+
59+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
60+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
5161
with:
5262
go-version: ${{ env.GO_VERSION }}
53-
- uses: golangci/golangci-lint-action@v6
63+
- uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
5464

5565
salus:
5666
runs-on: ubuntu-latest
5767
steps:
58-
- uses: actions/checkout@v4
68+
- name: Harden the runner (Audit all outbound calls)
69+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
70+
with:
71+
egress-policy: audit
72+
73+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5974
- run: |
6075
sudo docker run -t -v $(pwd):/home/repo coinbase/salus

0 commit comments

Comments
 (0)