From 43fd67d8260b2039bdd2c9d76ea7eb42fc43cf33 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 16 Nov 2025 13:24:47 +0100 Subject: [PATCH] GHA/codeql: limit cron job to the origin repository To avoid running it in every fork, every day. --- .github/workflows/codeql.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b51ccc27..ba491299 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -23,6 +23,7 @@ permissions: {} jobs: gha_python: + if: ${{ github.repository_owner == 'curl' || github.event_name != 'schedule' }} name: 'GHA and Python' runs-on: ubuntu-latest permissions: @@ -42,6 +43,7 @@ jobs: uses: github/codeql-action/analyze@v4 c: + if: ${{ github.repository_owner == 'curl' || github.event_name != 'schedule' }} name: 'C' runs-on: ubuntu-latest permissions: