From 050b2eeed4c773706ee8d48a76797d78cc500602 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 22 Apr 2024 14:11:35 -0400 Subject: ci/codeql: Exclude some alerts And try not to analyze config/*.c --- .github/codeql.yml | 9 +++++++++ .github/workflows/codeql.yml | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .github/codeql.yml 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 -- cgit v1.2.3