Skip to content

ci: add CodeQL scanning for C# - #1

Merged
PinKushin merged 1 commit into
mainfrom
ci/add-codeql
Sep 9, 2026
Merged

PinKushin merged 1 commit into
mainfrom
ci/add-codeql

Conversation

@PinKushin

Copy link
Copy Markdown
Owner

Every other C# repo here (TcgDex.CSharpSdk, PokemonBattleJournal, Tf2DemoSalvage) already runs CodeQL; this was the one gap despite already having secret scanning and Dependabot alerts on.

windows-latest, not ubuntu-latest like TcgDex.CSharpSdk's version — this repo's automation layer is raw IUIAutomation COM and every project targets net10.0-windows, so it can only build where ci.yml already builds it. Full solution build (WindowsDriverCore.slnx) rather than a single project, since these are genuinely different projects rather than one library multi-targeted three times.

No paths-ignore/query-filters yet — TcgDex.CSharpSdk only added its exclusion after a first real scan measured 212 alerts and traced them to a source-generator noise pattern. Nothing excluded here until a real run says something needs it.

Action versions looked up, not copied from memory: checkout v7.0.1, setup-dotnet v6.0.0, codeql-action v4.37.9.

🤖 Generated with Claude Code

Every other C# repo in this workspace (TcgDex.CSharpSdk, PokemonBattleJournal,
Tf2DemoSalvage) already runs this; WindowsDriverCore was the one gap despite
already having secret scanning and Dependabot alerts on. No reason it was
skipped is recorded anywhere - looks like an oversight rather than a decision.

windows-latest rather than TcgDex.CSharpSdk's ubuntu-latest: this repository's
automation layer is raw IUIAutomation COM and every project targets
net10.0-windows, so it can only build where ci.yml already builds it. Full
solution build (WindowsDriverCore.slnx) rather than a single project, because
unlike TcgDex.CSharpSdk's one library multi-targeted three times, this
repository's projects are genuinely different code and no single one stands in
for the rest.

No paths-ignore or query-filters yet. TcgDex.CSharpSdk's config excludes a
System.Text.Json source-generator noise pattern, added only after a first real
scan measured 212 alerts and traced all of them to generated code - there is no
evidence yet that WindowsDriverCore has the same or any other noise pattern, so
nothing is excluded until a real run says otherwise.

Action versions looked up rather than copied from memory:
checkout v7.0.1, setup-dotnet v6.0.0, codeql-action v4.37.9 (2026-09-08).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@PinKushin
PinKushin merged commit 90947b2 into main Sep 9, 2026
3 of 4 checks passed
@PinKushin
PinKushin deleted the ci/add-codeql branch September 9, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants