Skip to content

Commit b32ab6b

Browse files
committed
Add runner hardening to all jobs in our workflows
This aligns with what was done to the `lint` job of the build.yml workflow that was inherited from cisagov/skeleton-generic.
1 parent 2a249d0 commit b32ab6b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ jobs:
150150
- default
151151
runs-on: ubuntu-latest
152152
steps:
153+
- id: harden-runner
154+
name: Harden the runner
155+
uses: step-security/harden-runner@v2
156+
with:
157+
egress-policy: audit
153158
- uses: actions/checkout@v4
154159
- id: setup-python
155160
uses: actions/setup-python@v4

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ jobs:
3737
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
3838

3939
steps:
40+
- id: harden-runner
41+
name: Harden the runner
42+
uses: step-security/harden-runner@v2
43+
with:
44+
egress-policy: audit
45+
4046
- name: Checkout repository
4147
uses: actions/checkout@v4
4248

0 commit comments

Comments
 (0)