Skip to content

Commit fa51be0

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
1 parent 22ac297 commit fa51be0

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/on-comment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ jobs:
4848

4949
steps:
5050
# Hardens the runner and checks out the default branch (not the PR branch)
51+
- name: Harden the runner (Audit all outbound calls)
52+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
53+
with:
54+
egress-policy: audit
55+
5156
- name: Setup Bot Environment
5257
uses: ./.github/actions/setup-bot
5358

.github/workflows/on-commit.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
cancel-in-progress: false
2424

2525
steps:
26+
- name: Harden the runner (Audit all outbound calls)
27+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
28+
with:
29+
egress-policy: audit
30+
2631
- name: Setup Bot Environment
2732
uses: ./.github/actions/setup-bot
2833

.github/workflows/on-pr.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
cancel-in-progress: false
2727

2828
steps:
29+
- name: Harden the runner (Audit all outbound calls)
30+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
31+
with:
32+
egress-policy: audit
33+
2934
- name: Setup Bot Environment
3035
uses: ./.github/actions/setup-bot
3136

0 commit comments

Comments
 (0)