Skip to content

ci(codeql): optional build-mode input to scan without building - #18

Merged
tblauvvik merged 1 commit into
mainfrom
ci/codeql-build-mode-none
Nov 12, 2026
Merged

tblauvvik merged 1 commit into
mainfrom
ci/codeql-build-mode-none

Conversation

@tblauvvik

Copy link
Copy Markdown
Contributor

Adds an optional build-mode input to the shared CodeQL workflow.

Some legacy projects can't be built on GitHub-hosted runners (no root pom, or dependencies that aren't published or reachable), so autobuild fails and the repository gets no results. With build-mode: none, CodeQL analyses Java from the source without compiling it (somewhat lower precision); JavaScript and Actions are scanned as before. Autobuild and the custom build-command step are skipped in that mode.

Default (empty) keeps the current behaviour, so existing callers are unaffected.

🤖 Generated with Claude Code

Legacy projects that can't be built on GitHub-hosted runners (no root
pom, unpublished or unreachable dependencies) fail in autobuild, so they
get no results at all. With `build-mode: none` CodeQL analyses Java from
the source only; other languages are scanned as before. Autobuild and the
custom build step are skipped in that mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tblauvvik
tblauvvik merged commit a85d0a9 into main Nov 12, 2026
2 checks passed
@tblauvvik
tblauvvik deleted the ci/codeql-build-mode-none branch November 12, 2026 10:48
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