Commit b5e3cbf
fix: skip SBOM scan for downloaded packages without SBOM
When vulnerability scanning runs on packages downloaded from remote cache
that were built with older Leeway versions (before SBOM support), skip
gracefully with a warning instead of failing the build.
Only locally built packages (PackageBuilt) fail if SBOM is missing, since
we just generated it and missing SBOM indicates a bug.
Downloaded packages (PackageDownloaded) skip with a warning since older
cache artifacts may not have SBOM files.
Co-authored-by: Ona <[email protected]>1 parent eb5e08c commit b5e3cbf
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
132 | 146 | | |
133 | 147 | | |
134 | 148 | | |
| |||
0 commit comments