From a9821df896d1ce43db21a5063b6a014abad57c5c Mon Sep 17 00:00:00 2001 From: Billy Lynch <1844673+wlynch@users.noreply.github.com> Date: Thu, 7 Sep 2023 03:09:52 -0400 Subject: [PATCH] attest: pass OCI remote opts to att resolver. (#3225) We need cred helpers and other info set in the remote opts to resolve the upstream attesations, otherwise this will fail in automated environments. Signed-off-by: Billy Lynch --- cmd/cosign/cli/attest/attest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cosign/cli/attest/attest.go b/cmd/cosign/cli/attest/attest.go index 82c17677137..5806c10c275 100644 --- a/cmd/cosign/cli/attest/attest.go +++ b/cmd/cosign/cli/attest/attest.go @@ -212,7 +212,7 @@ func (c *AttestCommand) Exec(ctx context.Context, imageRef string) error { // We don't actually need to access the remote entity to attach things to it // so we use a placeholder here. - se := ociremote.SignedUnknown(digest) + se := ociremote.SignedUnknown(digest, ociremoteOpts...) signOpts := []mutate.SignOption{ mutate.WithDupeDetector(dd),