From 14b235a542d3ef6fb2eff89dc5123132cab9fd2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nils=20m=C3=A5s=C3=A9n?= Date: Sun, 22 Jan 2023 09:59:42 +0100 Subject: [PATCH] feat: add oci image index support (#1533) --- pkg/registry/digest/digest.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/registry/digest/digest.go b/pkg/registry/digest/digest.go index 26fbd8e..3bdf241 100644 --- a/pkg/registry/digest/digest.go +++ b/pkg/registry/digest/digest.go @@ -103,6 +103,7 @@ func GetDigest(url string, token string) (string, error) { req.Header.Add("Accept", "application/vnd.docker.distribution.manifest.v2+json") req.Header.Add("Accept", "application/vnd.docker.distribution.manifest.list.v2+json") req.Header.Add("Accept", "application/vnd.docker.distribution.manifest.v1+json") + req.Header.Add("Accept", "application/vnd.oci.image.index.v1+json") logrus.WithField("url", url).Debug("Doing a HEAD request to fetch a digest")