MCPcopy Create free account
hub / github.com/cli/cli / VerifyAttestation

Method VerifyAttestation

pkg/cmd/release/shared/attestation.go:22–22  ·  view source on GitHub ↗

VerifyAttestation verifies the attestation for a given artifact

(art *artifact.DigestedArtifact, att *api.Attestation)

Source from the content-addressed store, hash-verified

20type Verifier interface {
21 // VerifyAttestation verifies the attestation for a given artifact
22 VerifyAttestation(art *artifact.DigestedArtifact, att *api.Attestation) (*verification.AttestationProcessingResult, error)
23}
24
25type AttestationVerifier struct {

Callers 2

verifyRunFunction · 0.65
verifyAssetRunFunction · 0.65

Implementers 2

AttestationVerifierpkg/cmd/release/shared/attestation.go
MockVerifierpkg/cmd/release/shared/attestation.go

Calls

no outgoing calls

Tested by

no test coverage detected