You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: skip vulnerability scanning for packages that failed to build
When SLSA verification fails for a package and it needs to be built locally,
but the local build also fails, vulnerability scanning was attempting to scan
the package anyway and failing with 'Package not found in local cache'.
This fix:
- Passes the package build status map to vulnerability scanning
- Only scans packages with status PackageBuilt or PackageDownloaded
- Skips packages that failed verification, download, or build
- Logs which packages are skipped and why
This prevents fatal errors when a package fails to build but vulnerability
scanning is enabled. The build will still fail due to the package build
failure, but vulnerability scanning won't cause an additional error.
Fixes the issue in gitpod-next PR #11869 where api/go:lib SLSA verification
failed, local build was attempted, and vulnerability scanning crashed trying
to scan a package that wasn't in cache.
Co-authored-by: Ona <[email protected]>
0 commit comments