Skip to content

Commit

Permalink
attest: pass OCI remote opts to att resolver. (#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 Sep 7, 2023
1 parent 575fe44 commit a9821df
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 a9821df

Please sign in to comment.