Skip to content

Commit b574bdd

Browse files
authored
Merge pull request #1 from step-security-bot/stepsecurity_remediation_1737752075
[StepSecurity] ci: Harden GitHub Actions
2 parents 536287d + a76bd98 commit b574bdd

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/go-getter.yml

+13
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: [push]
55
env:
66
TEST_RESULTS_PATH: /tmp/test-results
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912

1013
linux-tests:
@@ -19,6 +22,11 @@ jobs:
1922
id-token: write
2023
contents: read
2124
steps:
25+
- name: Harden Runner
26+
uses: step-security/harden-runner@v2
27+
with:
28+
egress-policy: audit
29+
2230
- name: Setup go
2331
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2432
with:
@@ -99,6 +107,11 @@ jobs:
99107
id-token: write
100108
contents: read
101109
steps:
110+
- name: Harden Runner
111+
uses: step-security/harden-runner@v2
112+
with:
113+
egress-policy: audit
114+
102115
- name: Run git config #Windows-only
103116
run: git config --global core.autocrlf false
104117

.github/workflows/release.yml

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
release:
1616
runs-on: ubuntu-latest
1717
steps:
18+
- name: Harden Runner
19+
uses: step-security/harden-runner@v2
20+
with:
21+
egress-policy: audit
22+
1823
- name: Checkout code
1924
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
2025
with:

0 commit comments

Comments
 (0)