Skip to content

Commit f7d8628

Browse files
committed
fix(reusable workflows): only run harden-runner on public repos
This is only available to us in public repositories right now, so make this conditional for our reusable workflows.
1 parent cda4569 commit f7d8628

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.github/workflows/check-drone-signature.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
isFork: ${{ steps.check-if-fork.outputs.isFork }}
2929
steps:
3030
- name: Harden the runner (Audit all outbound calls)
31+
if: ${{ ! github.event.repository.private }}
3132
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
3233
with:
3334
egress-policy: audit

.github/workflows/publish-techdocs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
id-token: "write"
5858
steps:
5959
- name: Harden the runner (Audit all outbound calls)
60+
if: ${{ ! github.event.repository.private }}
6061
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
6162
with:
6263
egress-policy: audit

.github/workflows/reusable-zizmor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171

7272
steps:
7373
- name: Harden the runner (Audit all outbound calls)
74+
if: ${{ ! github.event.repository.private }}
7475
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
7576
with:
7677
egress-policy: audit

0 commit comments

Comments
 (0)