ci/quality: Enable guideline recategorization in CodeQL - #894
Merged
Conversation
castler
requested review from
LittleHuba,
bemerybmw,
crimson11,
hoe-jo and
limdor
as code owners
August 11, 2026 09:32
Adds the upstream MISRA guideline recategorization helper as a Bazel-wrapped value and calls it from `quality/static_analysis/codeql_lint.py` before producing the final SARIF and compliance reports. The change: - Adds a dedicated `guideline_recategorize` target in the vendored `codeql_coding_standards` BUILD file. - Wires `codeql_lint` to invoke that tool with the repository `coding-standards.yaml` before running `analysis_report`. - Keeps the dashboard/docs aligned with the generated recategorization report. - Adds a focused unit test for the SARIF recategorization helper. - Updates the pip lock for the helper's runtime dependencies. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Pin jsonpath-ng to 1.7.0 because the recategorizer is incompatible with the path formatting introduced by 1.8.0. Regenerate the lockfile, including the jsonpath-ng runtime dependency ply. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The recategorization integration is validated by the full CodeQL run; remove the standalone test and its Bazel target. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
hoe-jo
approved these changes
Aug 12, 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.
Summary
Validation
bazel test //quality/static_analysis:codeql_lint_test//score/message_passingand//score/mw/comcompleted successfully.