Draft
Integrate JaCoCo coverage into CodeQL analysis with 90% instruction coverage gate#388
Conversation
Co-authored-by: rashidi <380073+rashidi@users.noreply.github.com>
…alysis - Add JacocoCoverageVerification task to root build.gradle.kts that fails the build when instruction coverage drops below 90%, blocking merges via CI - Wire the aggregated JaCoCo XML report into codeql-action/analyze via the coverage-report input so CodeQL sees coverage data - Remove leftover dead `if: false` steps from codeql.yml Co-authored-by: rashidi <380073+rashidi@users.noreply.github.com>
Set upload: always on the analyze step so the SARIF result (which includes the JaCoCo coverage percentage via coverage-report) is uploaded to GitHub on every run, not only on failure. Co-authored-by: rashidi <380073+rashidi@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update GitHub Actions for JaCoCo coverage integration with CodeQL
Integrate JaCoCo coverage into CodeQL analysis with 90% instruction coverage gate
Aug 29, 2026
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.
Wires JaCoCo XML coverage reports into the CodeQL workflow and enforces a 90% instruction coverage minimum that fails CI — blocking merges — when the threshold isn't met.
build.gradle.ktsJacocoCoverageVerificationtask (testCodeCoverageVerification) enforcing ≥ 90% instruction coverage across all submodules against the aggregatedjacoco-report-aggregationreporttasks.checkso both thegradle-buildand CodeQL workflows enforce it on every run.github/workflows/codeql.ymlbuild-modefromautobuild→manual; the manual build step runs./gradlew checkwhich produces the aggregated JaCoCo XML reportcodeql-action/analyzeviacoverage-reportso CodeQL embeds coverage percentage in its SARIF outputupload: alwaysso coverage is reported on every run, not just failures