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
proxy mirror --sbom path.json works from the CLI but POST /api/mirror only accepts {"purls": [...]} — JobRequest in internal/mirror/job.go has no SBOM field and sourceFromRequest rejects anything else.
Add an sbom field to JobRequest that takes the raw document inline:
SBOMSource currently does os.ReadFile(s.Path) then passes []byte to the extract functions, so the change is splitting that into a Data []byte field and moving the file read up to the CLI caller. sourceFromRequest then returns &SBOMSource{Data: req.SBOM} when the field is set.
This lets CI jobs post their build's SBOM straight to the proxy to warm the cache without writing a temp file or shelling out.
Activity