From: Bernhard Kaindl Date: Fri, 6 Jan 2023 11:00:00 +0000 (+0100) Subject: CI: Run CodeQL in main repo only X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c35f2eda069bbcd16cb4ede094001f547f311486;p=xtf.git CI: Run CodeQL in main repo only Signed-off-by: Bernhard Kaindl Acked-by: Andrew Cooper --- diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b1143a8..997ec43 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -9,6 +9,9 @@ on: jobs: analyse: + # https://github.com/orgs/community/discussions/26409 (private secrets): + # Run this job if the feature branch is in the main repo (not in a fork): + if: github.event.pull_request.head.repo.full_name == github.repository strategy: matrix: