Skip to content

Commit 8cb29f9

Browse files
feat(security): security best practices from StepSecurity (#273)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>
1 parent 3853467 commit 8cb29f9

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.github/workflows/pull-request.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
2121

2222
steps:
23+
- name: Harden the runner (Audit all outbound calls)
24+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
25+
with:
26+
egress-policy: audit
27+
2328
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2429
with:
2530
persist-credentials: false

.github/workflows/pypi-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
name: Release py-ocsf-models to PyPI
2424
steps:
2525

26+
- name: Harden the runner (Audit all outbound calls)
27+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
28+
with:
29+
egress-policy: audit
30+
2631
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2732
with:
2833
persist-credentials: false

.github/workflows/zizmor.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
contents: read
2424
actions: read
2525
steps:
26+
- name: Harden the runner (Audit all outbound calls)
27+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
28+
with:
29+
egress-policy: audit
30+
2631
- name: Checkout repository
2732
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2833
with:
@@ -43,6 +48,11 @@ jobs:
4348
contents: read
4449
actions: read
4550
steps:
51+
- name: Harden the runner (Audit all outbound calls)
52+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
53+
with:
54+
egress-policy: audit
55+
4656
- name: Checkout repository
4757
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4858
with:

0 commit comments

Comments
 (0)