comment
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
baeaf66011
commit
d1c4bf7dd9
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ import (
|
|||
)
|
||||
|
||||
func getAttestations(o *Options, a artifact.DigestedArtifact) ([]*api.Attestation, string, error) {
|
||||
// Fetch attestations from GitHub API within this if block since predicate type
|
||||
// filter is done when the API is called
|
||||
if o.FetchAttestationsFromGitHubAPI() {
|
||||
params := api.FetchParams{
|
||||
Digest: a.DigestWithAlg(),
|
||||
|
|
@ -29,6 +31,8 @@ func getAttestations(o *Options, a artifact.DigestedArtifact) ([]*api.Attestatio
|
|||
return attestations, msg, nil
|
||||
}
|
||||
|
||||
// Fetch attestations from local bundle or OCI registry
|
||||
// Predicate type filtering is done after the attestations are fetched
|
||||
var attestations []*api.Attestation
|
||||
var err error
|
||||
var errMsg string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue