Skip to content

Commit 47d964b

Browse files
authored
meta: skip scheduled workflows on forks
Guards scheduled jobs in daily.yml, codeql.yml, and scorecard.yml so they only run on nodejs/node, matching the pattern already used in tools.yml, stale.yml, and others. This prevents wasted Actions minutes and failed-run email notifications on forks. Signed-off-by: Jamie Magee <jamie.magee@gmail.com> PR-URL: nodejs#63565 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
1 parent 8257091 commit 47d964b

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ permissions:
99

1010
jobs:
1111
analyze:
12+
if: github.repository == 'nodejs/node'
1213
name: Analyze
1314
runs-on: ubuntu-slim
1415
permissions:

.github/workflows/daily.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313

1414
jobs:
1515
build-lto:
16+
if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
1617
runs-on: ubuntu-24.04-arm
1718
steps:
1819
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/scorecard.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ permissions: read-all
2020

2121
jobs:
2222
analysis:
23+
if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
2324
name: Scorecard analysis
2425
# cannot use ubuntu-slim here because ossf/scorecard-action is dockerized
2526
# cannot use ubuntu-24.04-arm here because the docker image is x86 only

0 commit comments

Comments
 (0)