Fix cache severity bug, AI exit code, HTML crash, and score weighting gaps (2026.7.2)#128
Merged
Merged
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
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
Six fixes found during manual CLI verification of the Phase 0-3 feature set, bundled as patch release 2026.7.2:
ScanResultsCachekeyed results by image name only, so scanning an image at a narrow--severityand then re-scanning at a wider severity silently served the stale narrower cache, dropping real HIGH/MEDIUM findings from the report. The cache key now includes the normalized severity list.0, contradicting the documented exit-code contract. AI failures now exit3, same as scan failures."Title": nullfor a finding; the HTML report writer calledlen()on it unconditionally and crashed generation for the whole report. Vulnerability ID, package name, installed version, and title are now null-safe in the HTML report.--compose --scan-onlyprinted an unrelated "No image provided ... Running Dockerfile analysis only" message; now scoped to non-compose runs.ENVvar is detected.Version bumped to
2026.7.2insetup.py;docs/CHANGELOG.mdupdated with a dated[2026.7.2]section.Test plan
pytest tests/— 157 passeditombot:1.0.5at--severity CRITICAL, then--severity CRITICAL,HIGH,MEDIUM— second run no longer reuses the narrow cache and reports the full finding count3(was0)python:3.9scan containing a null-Titlefinding--compose --scan-onlyno longer prints the Dockerfile messagevulnerable-dockerfilefixture now scores 20/POOR (was 45/POOR); a clean fixture with no credentials is unaffected (100/EXCELLENT)