Skip to content

Commit d70e285

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 6608273 commit d70e285

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
matrix:
1313
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1414
steps:
15+
- name: Harden the runner (Audit all outbound calls)
16+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
17+
with:
18+
egress-policy: audit
19+
1520
- name: Checkout
1621
uses: actions/checkout@v4
1722

.github/workflows/check_pr_title.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@ jobs:
1010
name: Check PR title
1111
runs-on: [self-hosted, Linux, X64]
1212
steps:
13+
- name: Harden the runner (Audit all outbound calls)
14+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
15+
with:
16+
egress-policy: audit
17+
1318
- name: Check PR title
1419
uses: rudderlabs/[email protected]

.github/workflows/housekeeping.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
pull-requests: write
1515

1616
steps:
17+
- name: Harden the runner (Audit all outbound calls)
18+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
19+
with:
20+
egress-policy: audit
21+
1722
- uses: actions/stale@v9
1823
with:
1924
repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -27,6 +32,11 @@ jobs:
2732
name: Clean up stale branches
2833
runs-on: [self-hosted, Linux, X64]
2934
steps:
35+
- name: Harden the runner (Audit all outbound calls)
36+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
37+
with:
38+
egress-policy: audit
39+
3040
- name: Checkout repository
3141
uses: actions/checkout@v4
3242

.github/workflows/slack-notify.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ jobs:
99
name: Notify Slack
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Harden the runner (Audit all outbound calls)
13+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
14+
with:
15+
egress-policy: audit
16+
1217
- name: Send message to Slack channel
1318
id: slack
1419
uses: slackapi/[email protected]

0 commit comments

Comments
 (0)