Skip to content

ci: CodeQL buildless (build-mode none) for C# + web TypeScript - #411

Merged
M0LTE merged 1 commit into
mainfrom
claude/packet-net-security-testing-quwgjf
Jun 13, 2026
Merged

ci: CodeQL buildless (build-mode none) for C# + web TypeScript#411
M0LTE merged 1 commit into
mainfrom
claude/packet-net-security-testing-quwgjf

Conversation

@M0LTE

@M0LTE M0LTE commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

Refines the codeql.yml shipped in #409 before it first runs, after comparing against GitHub's auto-generated "Advanced setup" template.

Changes

  • Buildless extraction — both languages now use build-mode: none. C# buildless skips the full Release compile entirely, so the workflow no longer needs the exclusive flock -x /tmp/pdn-ci-heavy.lock — much lighter on the contended shared self-hosted runner. Small completeness cost vs a traced build, acceptable for a first cut.
  • Two shipped codebases via matrix — csharp (the .NET product) and javascript-typescript (web/packetnet-ui, the served control-panel SPA). The python-spec/rust-spec/c-spec dirs stay out of scope (reference artifacts, not product).
  • Kept runs-on: [self-hosted, Linux, X64]; added packages: read (private query packs); bumped the action to @v4.

Why not GitHub's generated template

GitHub's "Advanced setup" suggestion targets ubuntu-latest/macos-latest, which violates this project's hard rule (no GitHub-hosted runners — zero minutes budget), and it writes to the same codeql.yml path, so it would have overwritten the merged workflow. Declined; folded in only its good ideas (buildless C#, packages: read, @v4).

Caveat (unchanged from #409)

SARIF upload still requires code scanning enabled on the repo (GitHub Advanced Security on a private repo). Until that's on, the analyze step's upload fails. Workflow is correct regardless.

YAML validated; matrix = [csharp, javascript-typescript]. Workflow-only change.

https://claude.ai/code/session_01GSRLZXowGYeRieqaevEtBb


Generated by Claude Code

Rework codeql.yml before it first runs: switch both languages to buildless
extraction (build-mode: none) and matrix the two shipped codebases — csharp
(the .NET product) and javascript-typescript (web/packetnet-ui). Buildless C#
drops the full Release compile, so the workflow no longer needs the exclusive
flock — much lighter on the shared self-hosted runner. Keep [self-hosted,
Linux, X64]; add packages: read for private query packs; bump the action to v4.

Declined GitHub's generated "Advanced setup" template: it targets
ubuntu-latest/macos-latest (violates the no-hosted-runners rule) and would have
overwritten this file. The spec dirs (python/rust/c) stay out of scope.

https://claude.ai/code/session_01GSRLZXowGYeRieqaevEtBb
@M0LTE
M0LTE merged commit 856d8fd into main Jun 13, 2026
16 of 18 checks passed
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