feat(image): discover SBOM in OCI referrers (#3768)

Co-authored-by: saso <sasoakira6114@gmail.com>
This commit is contained in:
Teppei Fukuda
2023-03-26 08:27:10 +03:00
committed by GitHub
parent 3fa703c034
commit 63ef760c69
19 changed files with 558 additions and 129 deletions

View File

@@ -52,7 +52,7 @@ func (u *Updater) Update() error {
log.Logger.Info("Downloading the Java DB...")
var a *oci.Artifact
if a, err = oci.NewArtifact(u.repo, mediaType, u.quiet, u.insecure); err != nil {
if a, err = oci.NewArtifact(u.repo, mediaType, "", u.quiet, u.insecure); err != nil {
return xerrors.Errorf("oci error: %w", err)
}
if err = a.Download(context.Background(), dbDir); err != nil {