From 8a3d8d54379af32df0a0f08e9921b4c144c46dfc Mon Sep 17 00:00:00 2001 From: Nick Kuechel Date: Thu, 27 Nov 2025 21:16:14 -0600 Subject: [PATCH 1/4] CI: prevent scheduled workflow runs on forks (ci_crontests.yml) --- .github/workflows/ci_crontests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_crontests.yml b/.github/workflows/ci_crontests.yml index 209c3f9d10..1b48768c1c 100644 --- a/.github/workflows/ci_crontests.yml +++ b/.github/workflows/ci_crontests.yml @@ -4,7 +4,7 @@ on: push: # Run this job on release tags, but not on pushes to the main branch tags: - - '*' + - '*' schedule: # run every Friday at 22:00 UTC - cron: '0 22 * * 5' @@ -17,7 +17,8 @@ jobs: tests: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} - if: github.repository == 'astropy/astroquery' + # To enable this cron job on forks, comment out the following line + if: github.repository == 'astropy/astroquery' || github.event_name != 'schedule' strategy: fail-fast: false matrix: From f5e2a47e44948c00f8145f407a695438e6a99228 Mon Sep 17 00:00:00 2001 From: Nick Kuechel Date: Thu, 27 Nov 2025 21:24:56 -0600 Subject: [PATCH 2/4] CI: prevent scheduled workflow runs on forks (ci_devtests.yml) --- .github/workflows/ci_devtests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci_devtests.yml b/.github/workflows/ci_devtests.yml index 840425e718..1359d5748e 100644 --- a/.github/workflows/ci_devtests.yml +++ b/.github/workflows/ci_devtests.yml @@ -26,6 +26,8 @@ jobs: tests: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} + # To enable this cron job on forks, comment out the following line + if: github.repository == 'astropy/astroquery' || github.event_name != 'schedule' strategy: fail-fast: true matrix: From 166dcba1bf540c8a7f14735d0c5a6ed30e68e28e Mon Sep 17 00:00:00 2001 From: Nick Kuechel Date: Thu, 27 Nov 2025 21:32:29 -0600 Subject: [PATCH 3/4] CI: prevent scheduled workflow runs on forks (ci_tests.yml) --- .github/workflows/ci_tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 414dae222f..352ceb9be7 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -26,6 +26,8 @@ jobs: tests: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} + # To enable this cron job on forks, comment out the following line + if: github.repository == 'astropy/astroquery' || github.event_name != 'schedule' strategy: fail-fast: false matrix: @@ -83,6 +85,8 @@ jobs: egg_info: name: egg_info with Python 3.9 runs-on: ubuntu-latest + # To enable this cron job on forks, comment out the following line + if: github.repository == 'astropy/astroquery' || github.event_name != 'schedule' steps: - name: Checkout code uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 From 0723c36bf50bd583f4892f5ab4d3bcfe2f340249 Mon Sep 17 00:00:00 2001 From: Nick Kuechel Date: Thu, 27 Nov 2025 22:08:11 -0600 Subject: [PATCH 4/4] CI: prevent codeql analysis from running on forks --- .github/workflows/codeql-analysis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ab7abe24da..b790b52caf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -20,6 +20,7 @@ jobs: name: Analyze runs-on: ubuntu-latest + if: github.repository == 'astropy/astroquery' strategy: fail-fast: false matrix: