Skip to content

Commit

Permalink
Disable CodeQL from main build. (#9167)
Browse files Browse the repository at this point in the history
Commented out from main build
Removed from other paths where it was already commented out
(assuming that was copy & paste  work).

A followup should happen to figure  out how to make codeql
work better without geting API call limiting.
  • Loading branch information
andy31415 authored Aug 20, 2021
1 parent 2abe1cf commit 2ff871b
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 101 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
- name: Initialize CodeQL
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
uses: github/codeql-action/init@v1
with:
languages: "cpp"
#- name: Initialize CodeQL
# if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp"

- name: Bootstrap
timeout-minutes: 10
Expand Down Expand Up @@ -157,15 +157,15 @@ jobs:
# - name: Upload Code Coverage
# if: ${{ contains('main', env.BUILD_TYPE) }}
# run: bash <(curl -s https://codecov.io/bash)
- name: Remove third_party binaries for CodeQL Analysis
run: find out -type d -name "third_party" -exec rm -rf {} +
- name: Remove dbus binaries for CodeQL Analysis
run: find out -type d -name "dbus" -exec rm -rf {} +
# - name: Remove third_party binaries for CodeQL Analysis
# run: find out -type d -name "third_party" -exec rm -rf {} +
# - name: Remove dbus binaries for CodeQL Analysis
# run: find out -type d -name "dbus" -exec rm -rf {} +
# - 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' && github.event.ref == 'refs/heads/master' }}
uses: github/codeql-action/analyze@v1
# - name: Perform CodeQL Analysis
# if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
# uses: github/codeql-action/analyze@v1
build_linux_python_lib:
name: Build on Linux (python_lib)
timeout-minutes: 60
Expand Down Expand Up @@ -194,11 +194,11 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
- name: Initialize CodeQL
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
uses: github/codeql-action/init@v1
with:
languages: "cpp"
# - name: Initialize CodeQL
# if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp"

- name: Bootstrap
timeout-minutes: 10
Expand Down Expand Up @@ -231,15 +231,15 @@ jobs:
# - name: Upload Code Coverage
# if: ${{ contains('main', env.BUILD_TYPE) }}
# run: bash <(curl -s https://codecov.io/bash)
- name: Remove third_party binaries for CodeQL Analysis
run: find out -type d -name "third_party" -exec rm -rf {} +
- name: Remove dbus binaries for CodeQL Analysis
run: find out -type d -name "dbus" -exec rm -rf {} +
# - name: Remove third_party binaries for CodeQL Analysis
# run: find out -type d -name "third_party" -exec rm -rf {} +
# - name: Remove dbus binaries for CodeQL Analysis
# run: find out -type d -name "dbus" -exec rm -rf {} +
# - 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' && github.event.ref == 'refs/heads/master' }}
uses: github/codeql-action/analyze@v1
# - name: Perform CodeQL Analysis
# if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
# uses: github/codeql-action/analyze@v1
build_darwin:
name: Build on Darwin (clang, python_lib)
timeout-minutes: 60
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp, python"
- name: Bootstrap
timeout-minutes: 25
run: scripts/build/gn_bootstrap.sh
Expand Down Expand Up @@ -98,10 +94,3 @@ jobs:
out/lock_app_debug/BRD4161A/chip-efr32-lock-example.out.map
out/lighting_app_debug_rpc/BRD4161A/chip-efr32-lighting-example.out
out/lighting_app_debug_rpc/BRD4161A/chip-efr32-lighting-example.out.map
- name: Remove third_party binaries for CodeQL Analysis
run: find out -type d -name "third_party" -exec rm -rf {} +
- name: Remove SiliconLabs binaries for CodeQL Analysis
run: find out -type d -name "SiliconLabs" -exec rm -rf {} +
# - name: Perform CodeQL Analysis
# if: ${{ github.event_name == 'push' }}
# uses: github/codeql-action/analyze@v1
11 changes: 0 additions & 11 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp, python"
- name: Bootstrap
timeout-minutes: 25
run: scripts/build/gn_bootstrap.sh
Expand Down Expand Up @@ -149,10 +145,3 @@ jobs:
${{ env.BUILD_TYPE }}-example-build-${{
steps.outsuffix.outputs.value }}
path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build
# - name: Remove third_party binaries for CodeQL Analysis
# run: find . -type d -name "third_party" -exec rm -rf {} +
# - name: Remove m5stack-tft binaries for CodeQL Analysis
# run: find . -type d -name "m5stack-tft" -exec rm -rf {} +
# - name: Perform CodeQL Analysis
# if: ${{ github.event_name == 'push' }}
# uses: github/codeql-action/analyze@v1
10 changes: 0 additions & 10 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp"
# queries: +security-and-quality
- name: Bootstrap
timeout-minutes: 25
run: scripts/build/gn_bootstrap.sh
Expand Down Expand Up @@ -87,8 +82,3 @@ jobs:
path: |
out/lock_app_debug/chip-k32w061-lock-example.out
out/lock_app_debug/chip-k32w061-lock-example.out.map
- name: Remove third_party binaries for CodeQL Analysis
run: find out -type d -name "third_party" -exec rm -rf {} +
# - name: Perform CodeQL Analysis
# if: ${{ github.event_name == 'push' }}
# uses: github/codeql-action/analyze@v1
13 changes: 0 additions & 13 deletions .github/workflows/examples-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp, python"
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
Expand Down Expand Up @@ -107,12 +103,3 @@ jobs:
path: |
out/all_clusters_debug/all-clusters-server
out/all_clusters_debug/all-clusters-server.map
- name: Remove third_party binaries for CodeQL Analysis
run: find out -type d -name "third_party" -exec rm -rf {} +
- name: Remove dbus binaries for CodeQL Analysis
run: find out -type d -name "dbus" -exec rm -rf {} +
- name: Remove gen binaries for CodeQL Analysis
run: find out -type d -name "gen" -exec rm -rf {} +
# - name: Perform CodeQL Analysis
# if: ${{ github.event_name == 'push' }}
# uses: github/codeql-action/analyze@v1
23 changes: 0 additions & 23 deletions .github/workflows/examples-nrfconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ jobs:
- name: Update nRF Connect SDK revision to the currently recommended.
timeout-minutes: 5
run: scripts/run_in_build_env.sh "python3 scripts/setup/nrfconnect/update_ncs.py --update --shallow"
# https://github.com/project-chip/connectedhomeip/issues/3100
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp, python"
# queries: +security-and-quality
- name: Build example nRF Connect SDK Lock App on nRF52840 DK
timeout-minutes: 5
run: scripts/examples/nrfconnect_example.sh lock-app nrf52840dk_nrf52840
Expand Down Expand Up @@ -113,20 +107,3 @@ jobs:
${{ env.BUILD_TYPE }}-example-build-${{
steps.outsuffix.outputs.value }}
path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build
# https://github.com/project-chip/connectedhomeip/issues/3100
# - name: Remove third_party binaries for CodeQL Analysis
# run: find examples -type d -name "third_party" -exec rm -rf {} +
# - name: Remove nrfxlib binaries for CodeQL Analysis
# run: find examples -type d -name "nrfxlib" -exec rm -rf {} +
# - name: Remove zephyr binaries for CodeQL Analysis
# run: find examples -type d -name "zephyr" -exec rm -rf {} +
# - name: Remove nrf binaries for CodeQL Analysis
# run: find examples -type d -name "nrf" -exec rm -rf {} +
# - name: Remove modules binaries for CodeQL Analysis
# run: find examples -type d -name "modules" -exec rm -rf {} +
# - name: Perform CodeQL Analysis
# if: ${{ github.event_name == 'push' }}
# uses: github/codeql-action/analyze@v1
# - name: Perform CodeQL Analysis
# if: ${{ github.event_name == 'push' }}
# uses: github/codeql-action/analyze@v1
9 changes: 0 additions & 9 deletions .github/workflows/examples-qpg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp"
- name: Bootstrap
timeout-minutes: 25
run: scripts/build/gn_bootstrap.sh
Expand Down Expand Up @@ -86,8 +82,3 @@ jobs:
path: |
out/lighting_app_debug/chip-qpg6100-lighting-example.out
out/lighting_app_debug/chip-qpg6100-lighting-example.out.map
- name: Remove third_party binaries for CodeQL Analysis
run: find out -type d -name "third_party" -exec rm -rf {} +
# - name: Perform CodeQL Analysis
# if: ${{ github.event_name == 'push' }}
# uses: github/codeql-action/analyze@v1

0 comments on commit 2ff871b

Please sign in to comment.