Merge pull request #10019 from malancas/gh-attestation-oci-attestations-bug

Fix bug when fetching bundles from OCI registry
This commit is contained in:
Meredith Lancaster 2024-12-05 09:41:56 -07:00 committed by GitHub
commit 90dfefbefb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,7 +118,7 @@ func GetRemoteAttestations(client api.Client, params FetchRemoteAttestationsPara
}
func GetOCIAttestations(client oci.Client, artifact artifact.DigestedArtifact) ([]*api.Attestation, error) {
attestations, err := client.GetAttestations(artifact.NameRef(), artifact.Digest())
attestations, err := client.GetAttestations(artifact.NameRef(), artifact.DigestWithAlg())
if err != nil {
return nil, fmt.Errorf("failed to fetch OCI attestations: %w", err)
}