Skip to content

Commit

Permalink
attest: pass OCI remote opts to att resolver. (sigstore#3225)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wlynch authored and lance committed Sep 25, 2023
1 parent ff0ae8f commit 8e562eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cosign/cli/attest/attest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 8e562eb

Please sign in to comment.