summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-22 14:11:35 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-22 14:11:35 -0400
commit050b2eeed4c773706ee8d48a76797d78cc500602 (patch)
tree12495e2a077b8f0a1f0cf00a536070131e52702c
parentf133d71fc49a6ae2ddd64c73e630227e1e7a9ba5 (diff)
downloadbfs-050b2eeed4c773706ee8d48a76797d78cc500602.tar.xz
ci/codeql: Exclude some alerts
And try not to analyze config/*.c
-rw-r--r--.github/codeql.yml9
-rw-r--r--.github/workflows/codeql.yml6
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