From 8a4f239b95f6568c920072821fddd8a157a61ff8 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 16 Jul 2021 13:05:24 -0400 Subject: [PATCH] Turn off CodeQL for pushes to non-ToT branches (#8448) --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f80ddca9605db7..b73362ad348e03 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -61,7 +61,7 @@ jobs: with: submodules: true - name: Initialize CodeQL - if: ${{ github.event_name == 'push' && (matrix.type == 'gcc_release' || matrix.type == 'clang' || matrix.type == 'mbedtls') }} + if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' && (matrix.type == 'gcc_release' || matrix.type == 'clang' || matrix.type == 'mbedtls') }} uses: github/codeql-action/init@v1 with: languages: "cpp" @@ -109,7 +109,7 @@ jobs: # - name: Remove nrfxlib binaries for CodeQL Analysis # run: find . -type d -name "nrfxlib" -exec rm -rf {} + - name: Perform CodeQL Analysis - if: ${{ github.event_name == 'push' && (matrix.type == 'gcc_release' || matrix.type == 'clang' || matrix.type == 'mbedtls') }} + if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' && (matrix.type == 'gcc_release' || matrix.type == 'clang' || matrix.type == 'mbedtls') }} uses: github/codeql-action/analyze@v1 build_darwin: name: Build on Darwin