Skip to content

Commit c0a167c

Browse files
Marcel Dütscherclaude
andcommitted
CodeQL: scope analysis to src/ so libdeps stop drowning the alerts
Without a config file, CodeQL traced the full PlatformIO build and scored ~2000 alerts against third-party libraries under .pio/libdeps/ (M5GFX, ESP32-audioI2S). Limit analysis to src/ so the dashboard only shows findings we can actually act on. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e595032 commit c0a167c

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/codeql/codeql-config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Pixel-Pets CodeQL config"
2+
3+
# Limit analysis to our own firmware source. CodeQL traces every compile
4+
# during the PlatformIO build, which would otherwise pull thousands of
5+
# alerts out of third-party libraries under .pio/libdeps/ (M5GFX,
6+
# ESP32-audioI2S, etc.) — code we don't maintain and can't fix.
7+
paths:
8+
- src
9+
10+
paths-ignore:
11+
- .pio
12+
- '**/libdeps/**'

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
with:
7272
languages: c-cpp
7373
queries: security-and-quality
74+
config-file: ./.github/codeql/codeql-config.yml
7475

7576
- name: Build firmware (CodeQL traces compiles)
7677
run: pio run -e ${{ matrix.env }}

0 commit comments

Comments
 (0)