From 1045cfd033215cf90435e86564faaf2aba41ba3d Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 16 Nov 2025 23:14:22 +0100 Subject: [PATCH] GHA/codeql: limit cron job to the origin repository (#1741) To avoid running it in every fork, every week. --- .github/workflows/codeql.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 3ca00502..9cc251ec 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,6 +24,7 @@ permissions: {} jobs: gha: + if: ${{ github.repository_owner == 'libssh2' || github.event_name != 'schedule' }} name: 'GHA' runs-on: ubuntu-latest permissions: @@ -43,6 +44,7 @@ jobs: uses: github/codeql-action/analyze@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8 c: + if: ${{ github.repository_owner == 'libssh2' || github.event_name != 'schedule' }} name: 'C' runs-on: ${{ matrix.platform == 'Linux' && 'ubuntu-latest' || 'windows-2022' }} permissions: