Skip to content

Commit

Permalink
ad
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Mar 14, 2024
1 parent fd339b2 commit d537eb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/stacker/referrer.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,12 @@ func getArtifact(path, mtype, aUrl, username, password string, skipTLS bool) err
return err
}

if (manifest.Config.MediaType != ispec.DescriptorEmptyJSON.MediaType) ||
(manifest.Config.Digest != ispec.DescriptorEmptyJSON.Digest) {
log.Errorf("invalid artifact descriptor for %s", sdgst.String())
return errors.Errorf("invalid artifact descriptor for %s", sdgst.String())
}

// create a tempfile
fh, err := os.CreateTemp(path, "*.json")
if err != nil {
Expand Down

0 comments on commit d537eb3

Please sign in to comment.