From 6201cfe4880dd18ce2425b4c541d3e69731a0636 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Wed, 27 May 2026 11:16:37 -0700 Subject: [PATCH] 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 PR-URL: https://github.com/nodejs/node/pull/63565 Reviewed-By: Luigi Pinca Reviewed-By: Antoine du Hamel Reviewed-By: Trivikram Kamat Reviewed-By: Moshe Atlow Reviewed-By: Jake Yuesong Li --- .github/workflows/codeql.yml | 1 + .github/workflows/daily.yml | 1 + .github/workflows/scorecard.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 5ff9daaa630..01d7f37e381 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -9,6 +9,7 @@ permissions: jobs: analyze: + if: github.repository == 'nodejs/node' name: Analyze runs-on: ubuntu-slim permissions: diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 80e7f8294d6..0b82dd2aac0 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -13,6 +13,7 @@ permissions: jobs: build-lto: + if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-24.04-arm steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index b25d5f32ce7..fbd12b76548 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -20,6 +20,7 @@ permissions: read-all jobs: analysis: + if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch' name: Scorecard analysis # cannot use ubuntu-slim here because ossf/scorecard-action is dockerized # cannot use ubuntu-24.04-arm here because the docker image is x86 only