From 756b6c2f8794b7e86601c86b7a992150ab73b252 Mon Sep 17 00:00:00 2001 From: andreaTP Date: Thu, 19 May 2022 12:13:48 +0100 Subject: [PATCH] Filter CodeQL actions to only run on main repo --- .github/workflows/codeql-java-analysis.yml | 1 + .github/workflows/codeql-js-adapter-analysis.yml | 1 + .github/workflows/codeql-theme-analysis.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/codeql-java-analysis.yml b/.github/workflows/codeql-java-analysis.yml index 8fdb2695d6..2dd99ec201 100644 --- a/.github/workflows/codeql-java-analysis.yml +++ b/.github/workflows/codeql-java-analysis.yml @@ -16,6 +16,7 @@ on: - cron: '0 9 * * 2' jobs: + if: github.repository == 'keycloak/keycloak' analyze: name: CodeQL analyze runs-on: ubuntu-latest diff --git a/.github/workflows/codeql-js-adapter-analysis.yml b/.github/workflows/codeql-js-adapter-analysis.yml index 0089d8fdeb..6abbdb5ed3 100644 --- a/.github/workflows/codeql-js-adapter-analysis.yml +++ b/.github/workflows/codeql-js-adapter-analysis.yml @@ -16,6 +16,7 @@ on: - cron: '0 9 * * 2' jobs: + if: github.repository == 'keycloak/keycloak' analyze: name: CodeQL analyze runs-on: ubuntu-latest diff --git a/.github/workflows/codeql-theme-analysis.yml b/.github/workflows/codeql-theme-analysis.yml index f643ed9ded..f5958d31de 100644 --- a/.github/workflows/codeql-theme-analysis.yml +++ b/.github/workflows/codeql-theme-analysis.yml @@ -16,6 +16,7 @@ on: - cron: '0 9 * * 2' jobs: + if: github.repository == 'keycloak/keycloak' analyze: name: CodeQL analyze runs-on: ubuntu-latest