diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-22 14:11:35 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-22 14:11:35 -0400 |
commit | 050b2eeed4c773706ee8d48a76797d78cc500602 (patch) | |
tree | 12495e2a077b8f0a1f0cf00a536070131e52702c | |
parent | f133d71fc49a6ae2ddd64c73e630227e1e7a9ba5 (diff) | |
download | bfs-050b2eeed4c773706ee8d48a76797d78cc500602.tar.xz |
ci/codeql: Exclude some alerts
And try not to analyze config/*.c
-rw-r--r-- | .github/codeql.yml | 9 | ||||
-rw-r--r-- | .github/workflows/codeql.yml | 6 |
2 files changed, 14 insertions, 1 deletions
diff --git a/.github/codeql.yml b/.github/codeql.yml new file mode 100644 index 0000000..6ff8337 --- /dev/null +++ b/.github/codeql.yml @@ -0,0 +1,9 @@ +query-filters: + - exclude: + id: cpp/commented-out-code + - exclude: + id: cpp/long-switch + - exclude: + id: cpp/loop-variable-changed + - exclude: + id: cpp/poorly-documented-function diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a2c224a..c21fda5 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -39,15 +39,19 @@ jobs: libonig-dev \ liburing-dev + - name: Configure + run: | + make -j$(nproc) config + - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: languages: cpp queries: +security-and-quality + config-file: .github/codeql.yml - name: Build run: | - make config make -j$(nproc) all - name: Perform CodeQL Analysis |