Skip to content

Commit

Permalink
Turn off CodeQL for pushes to non-ToT branches (project-chip#8448)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple authored and Nikita committed Sep 23, 2021
1 parent f2ce7d3 commit a7cef21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a7cef21

Please sign in to comment.