Skip to content

Commit b51a4e8

Browse files
step-security-botamilcarlucas
authored andcommitted
fix(ci): Harden GitHub Actions
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 4cbf3d9 commit b51a4e8

20 files changed

+120
-0
lines changed

.github/workflows/bump_version_and_tag.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
contents: write # to trigger the windows_build and python-publish workflows
2424

2525
steps:
26+
- name: Harden the runner (Audit all outbound calls)
27+
uses: step-security/harden-runner@v2
28+
with:
29+
egress-policy: audit
30+
2631
- name: Checkout repository
2732
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2833
with:

.github/workflows/codeql.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4141

4242
steps:
43+
- name: Harden the runner (Audit all outbound calls)
44+
uses: step-security/harden-runner@v2
45+
with:
46+
egress-policy: audit
47+
4348
- name: Checkout repository
4449
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4550

.github/workflows/dependency-review.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
dependency-review:
1717
runs-on: ubuntu-latest
1818
steps:
19+
- name: Harden the runner (Audit all outbound calls)
20+
uses: step-security/harden-runner@v2
21+
with:
22+
egress-policy: audit
23+
1924
- name: 'Checkout Repository'
2025
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2126
- name: 'Dependency Review'

.github/workflows/gitavscan.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
name: AV scan
1717

1818
steps:
19+
- name: Harden the runner (Audit all outbound calls)
20+
uses: step-security/harden-runner@v2
21+
with:
22+
egress-policy: audit
23+
1924
- name: Checkout
2025
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2126

.github/workflows/i18n-extract.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
PO_FILES_CHANGED: false
3030

3131
steps:
32+
- name: Harden the runner (Audit all outbound calls)
33+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
34+
with:
35+
egress-policy: audit
36+
3237
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3338

3439
- name: Set up Python

.github/workflows/markdown-link-check.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818

19+
- name: Harden the runner (Audit all outbound calls)
20+
uses: step-security/harden-runner@v2
21+
with:
22+
egress-policy: audit
23+
1924
- name: Checkout
2025
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2126

.github/workflows/markdown-lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818

19+
- name: Harden the runner (Audit all outbound calls)
20+
uses: step-security/harden-runner@v2
21+
with:
22+
egress-policy: audit
23+
1924
- name: Checkout
2025
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2126

.github/workflows/mypy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21+
- name: Harden the runner (Audit all outbound calls)
22+
uses: step-security/harden-runner@v2
23+
with:
24+
egress-policy: audit
25+
2126
- name: Checkout
2227
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2328

.github/workflows/pylint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
UV_SYSTEM_PYTHON: 1
2424

2525
steps:
26+
- name: Harden the runner (Audit all outbound calls)
27+
uses: step-security/harden-runner@v2
28+
with:
29+
egress-policy: audit
30+
2631
- name: Checkout
2732
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2833

.github/workflows/pyright.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
UV_SYSTEM_PYTHON: 1
2626

2727
steps:
28+
- name: Harden the runner (Audit all outbound calls)
29+
uses: step-security/harden-runner@v2
30+
with:
31+
egress-policy: audit
32+
2833
- name: Checkout
2934
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3035

0 commit comments

Comments
 (0)