MCPcopy Create free account
hub / github.com/conforma/cli / VerifyImageSignatures

Method VerifyImageSignatures

internal/utils/oci/client.go:112–121  ·  view source on GitHub ↗
(ref name.Reference, opts *cosign.CheckOpts)

Source from the content-addressed store, hash-verified

110}
111
112func (c *defaultClient) VerifyImageSignatures(ref name.Reference, opts *cosign.CheckOpts) ([]oci.Signature, bool, error) {
113 if trace.IsEnabled() {
114 region := trace.StartRegion(c.ctx, "ec:validate-image-signatures")
115 defer region.End()
116 trace.Logf(c.ctx, "", "image=%q", ref)
117 }
118
119 opts.RegistryClientOpts = append(opts.RegistryClientOpts, ociremote.WithRemoteOptions(c.opts...))
120 return cosign.VerifyImageSignatures(c.ctx, ref, opts)
121}
122
123func (c *defaultClient) VerifyImageAttestations(ref name.Reference, opts *cosign.CheckOpts) ([]oci.Signature, bool, error) {
124 if trace.IsEnabled() {

Callers

nothing calls this directly

Calls 2

LogfMethod · 0.65
VerifyImageSignaturesMethod · 0.65

Tested by

no test coverage detected