Skip to content

Commit e4ec351

Browse files
chore: apply security best practices from step security (#97)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>
1 parent d96ac34 commit e4ec351

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

.github/workflows/release-please.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ jobs:
1313
release-please:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: googleapis/release-please-action@v4
16+
- name: Harden the runner (Audit all outbound calls)
17+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
18+
with:
19+
egress-policy: audit
20+
21+
- uses: googleapis/release-please-action@c2a5a2bd6a758a0937f1ddb1e8950609867ed15c # v4.3.0
1722
with:
1823
# this assumes that you have created a personal access token
1924
# (PAT) and configured it as a GitHub action secret named

.github/workflows/tests.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ jobs:
1111
name: Unit
1212
runs-on: 'ubuntu-22.04'
1313
steps:
14-
- uses: actions/checkout@v5
15-
- uses: actions/setup-go@v5
14+
- name: Harden the runner (Audit all outbound calls)
15+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
16+
with:
17+
egress-policy: audit
18+
19+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
1621
with:
1722
go-version-file: 'go.mod'
1823
- run: go version

.github/workflows/verify.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ jobs:
1212
name: Correct generated files
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v5
16-
- uses: actions/setup-go@v5
15+
- name: Harden the runner (Audit all outbound calls)
16+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
17+
with:
18+
egress-policy: audit
19+
20+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
1722
with:
1823
go-version-file: 'go.mod'
1924
- run: go version
@@ -39,12 +44,17 @@ jobs:
3944
name: lint
4045
runs-on: ubuntu-latest
4146
steps:
42-
- uses: actions/checkout@v5
43-
- uses: actions/setup-go@v5
47+
- name: Harden the runner (Audit all outbound calls)
48+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
49+
with:
50+
egress-policy: audit
51+
52+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
53+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
4454
with:
4555
go-version-file: 'go.mod'
4656
- name: golangci-lint
47-
uses: golangci/golangci-lint-action@v8
57+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
4858
with:
4959
version: v2.1.6
5060
args: -v

0 commit comments

Comments
 (0)