Skip to content

Commit 49c55f4

Browse files
committed
ci: don't run membrowse workflows on forks
The report job runs on a nightly schedule and would also fire on any fork with Actions enabled, burning fork CI minutes and reporting fork builds to the membrowse backend. Guard the jobs with github.repository_owner == 'wolfssl', matching tls-anvil.yml and coverity-scan-fixes.yml.
1 parent 7467ce2 commit 49c55f4

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/membrowse-onboard.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111

1212
jobs:
1313
load-targets:
14+
# Only run from the wolfssl org to avoid burning forks' CI minutes
15+
# and reporting fork builds to the membrowse backend.
16+
if: github.repository_owner == 'wolfssl'
1417
runs-on: ubuntu-24.04
1518
timeout-minutes: 10
1619
outputs:
@@ -25,6 +28,7 @@ jobs:
2528

2629
onboard:
2730
needs: load-targets
31+
if: github.repository_owner == 'wolfssl'
2832
runs-on: ubuntu-24.04
2933
timeout-minutes: 10
3034
strategy:

.github/workflows/membrowse-report.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ concurrency:
1515

1616
jobs:
1717
load-targets:
18+
# Only run from the wolfssl org to avoid burning forks' CI minutes
19+
# and reporting fork builds to the membrowse backend.
20+
if: github.repository_owner == 'wolfssl'
1821
runs-on: ubuntu-24.04
1922
timeout-minutes: 10
2023
outputs:
@@ -29,6 +32,7 @@ jobs:
2932

3033
analyze:
3134
needs: load-targets
35+
if: github.repository_owner == 'wolfssl'
3236
runs-on: ubuntu-24.04
3337
timeout-minutes: 10
3438
strategy:

0 commit comments

Comments
 (0)