Skip to content

ci: preserve existing CodeQL category comparisons - #4

Merged
cleissonom merged 2 commits into
mainfrom
ci/codeql-category-compatibility
Nov 25, 2026
Merged

cleissonom merged 2 commits into
mainfrom
ci/codeql-category-compatibility

Conversation

@cleissonom

@cleissonom cleissonom commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Devimg has a historical Rust CodeQL configuration and a new shared configuration. The required GitHub code-scanning rule expects results for both on a pull request, even though they run the same query set. Add an optional legacy category to the shared reporter so one genuine CodeQL analysis can be compared against both baselines. Existing consumers retain their current behavior.

The reporter downloads the immutable SARIF artifact from the read-only analyzer, loads the category filter from the called workflow’s own revision, and adds a second run differing only in its category identifier. It preserves the original findings and fingerprints. The same upload submits both results.

Verification

  • Reproduced the blocked merge on devimg and inspected the current and prior SARIF category identifiers.
  • Tested with the actual downloaded devimg report and with a synthetic finding carrying a fingerprint.
  • Added negative checks for an unexpected tool, category, or run count, and verified the existing release tests still pass.
  • GitHub accepted the live qualification upload and recorded both /language:python and .github/workflows/ci.yml:legacy-compatibility-test without an analysis error. The final revision removes the temporary consumer input.

@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.

@cleissonom
cleissonom merged commit 60b15e5 into main Nov 25, 2026
16 checks passed
@cleissonom
cleissonom deleted the ci/codeql-category-compatibility branch November 25, 2026 17:51
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