Commit de50050
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>1 parent de0a363 commit de50050
2 files changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
721 | 726 | | |
722 | 727 | | |
723 | 728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
1116 | 1146 | | |
1117 | 1147 | | |
1118 | 1148 | | |
| |||
0 commit comments