Repository navigation
fix(review): static scan says which analyzers ran and which were not installed - #531
Merged
Merged
Conversation
…installed A review printed "Static analyzers completed (0 finding(s) detected)" after naming six analyzers when only Bandit was installed. Semgrep, Trivy, kube-linter and Pluto were skipped silently and Gitleaks fell back to its built-in patterns, so the scan read as clean. Each analyzer is now recorded as ran, built-in patterns, not installed or no files: - the console names the analyzers that ran, and on its own line those not installed; - review.md has a Static Analyzers table; - profile.json and benchmark summaries keep the states, so benchmarks tell a clean scan from a skipped one. Gitleaks' binary comes from BIN_GITLEAKS like the other scanners. The unused stage module that still prints the old message is filed as #530. Closes #516
This was referenced Sep 24, 2026
Merged
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.
Closes #516.
Problem
A review printed "Static analyzers completed (0 finding(s) detected)" after naming six analyzers, when only Bandit was installed:
A reader took that for a clean scan.
Changes
_static_analyzer_statesinpipeline.py). Each of the six analyzers is recorded with one of four states:ran;built-in patterns(Gitleaks without its binary);not installed;no filesof its kind.review.mdhas a Static Analyzers table.profile.jsonrecords the states;BenchmarkSummary.static_analyzerskeeps every state each analyzer had across runs;devops review benchmarkprints them, so runs that differ are visible.BIN_GITLEAKS, like the other scanners.On this devcontainer (Bandit only, as in the report):
Also found
stages/static_scan.pystill prints the old message and never calls Trivy. It is one of sixrun_*_stageentry points the pipeline never calls. They are filed for removal as #530, not changed here.Test plan
tests/test_review_static_analyzers.py(6 tests):uv run devops ci --force: all 13 gates pass