Skip to content

fix(release): parse Grype 0.110 nested db.status identity - #170

Merged
Coding-Dev-Tools merged 3 commits into
mainfrom
fix/grype-db-status-shape
Aug 25, 2026
Merged

fix(release): parse Grype 0.110 nested db.status identity#170
Coding-Dev-Tools merged 3 commits into
mainfrom
fix/grype-db-status-shape

Conversation

@Coding-Dev-Tools

Copy link
Copy Markdown
Owner

fix(release): parse Grype 0.110 nested db.status identity

Grype >= 0.110 nests the vulnerability database identity under
descriptor.db.status (built / schemaVersion / checksum inside the from
URL); release_evidence.py still read the pre-0.110 flat db layout and
failed the v1.6 release run with "container vulnerability database
identity is incomplete" after every other gate had passed.

Accept both shapes: when db.status is a mapping, merge its fields over
the flat ones before validating. Adds a regression test using the exact
structure emitted by scan-action/Grype 0.110.0 in run 32860273692.

Co-authored-by: CommandCodeBot noreply@commandcode.ai

Grype >= 0.110 nests the vulnerability database identity under
descriptor.db.status (built / schemaVersion / checksum inside the from
URL); release_evidence.py still read the pre-0.110 flat db layout and
failed the v1.6 release run with "container vulnerability database
identity is incomplete" after every other gate had passed.

Accept both shapes: when db.status is a mapping, merge its fields over
the flat ones before validating. Adds a regression test using the exact
structure emitted by scan-action/Grype 0.110.0 in run 32860273692.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: de500506f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/release_evidence.py
…: false)

Codex review P1 on #170: the db.status merge ignored the scanner-declared
validity flag, so an invalid-database report with zero matches could pass
the severity gate and ship as release security evidence. Reject such
reports explicitly; adds a regression test.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
@Coding-Dev-Tools

Copy link
Copy Markdown
Owner Author

Fixed in ba8c991: `db.status.valid: false` now raises EvidenceError ("container vulnerability database is marked invalid by the scanner") before identity validation, with a regression test using the exact 0.110 status shape.

@Coding-Dev-Tools
Coding-Dev-Tools merged commit 29c3f4f into main Aug 25, 2026
42 of 43 checks passed
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.

1 participant