ci: add CodeQL code scanning (Rust + Angular frontend) - #98
Merged
Conversation
Adds static analysis (code scanning) covering the Rust workspace (build-mode autobuild) and the TypeScript/Angular frontend (build-mode none). Findings surface under Security > Code scanning and as PR annotations. Runs on the same self-hosted [self-hosted, node-b, linux, x64, rust] fleet as the rest of CI (passes the runner-policy gate; verified with scripts/runner_policy.py). Triggers on push to main, PRs, a weekly schedule, and manual dispatch. Bot (Dependabot) PRs are skipped, matching ci.yml. Companion to enabling secret scanning + push protection on the repository. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NcRDAbyqhY88qnQBaMtue8
|
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:
For more information about GitHub Code Scanning, check out the documentation. |
The Rust extractor in the CodeQL bundle only supports buildless extraction; `database init --build-mode=autobuild` fails with "Rust does not support the autobuild build mode." Switch the Rust matrix entry to build-mode: none (the js/ts entry already was), which also removes any build/tracing memory concern. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NcRDAbyqhY88qnQBaMtue8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the code-scanning blind spot flagged during the security review (WI-4). Secret scanning + push protection were enabled on the repo via API alongside this.
What
.github/workflows/codeql.ymlanalyzing two languages in a matrix:build-mode: autobuildbuild-mode: none(frontend, no build needed)[self-hosted, node-b, linux, x64, rust]— passes therunner-policygate (verified locally withscripts/runner_policy.py: "8 workflow file(s) audited, all self-hosted").main, PRs, weekly schedule, manual dispatch. Skips Bot PRs likeci.yml.fail-fast: falseso one language's failure doesn't hide the other.Because CodeQL hasn't run on these self-hosted runners before, the first run needs an eye on:
CARGO_BUILD_JOBS: 1is set to match CI. If Rust OOMs/times out, the fallback is to scope this workflow tojavascript-typescriptonly and pursue Rust scanning once runner capacity is confirmed.Recommendation (separate)
dependabot_security_updatesis currently disabled — enabling it would auto-open fix PRs for future advisories. Happy to flip that too if wanted.🤖 Generated with Claude Code