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

Method FetchAttestationsFromGitHubAPI

pkg/cmd/attestation/verify/options.go:58–60  ·  view source on GitHub ↗

FetchAttestationsFromGitHubAPI returns true if the command should fetch attestations from the GitHub API It checks that a bundle path is not provided and that the "use bundle from registry" flag is not set

()

Source from the content-addressed store, hash-verified

56// FetchAttestationsFromGitHubAPI returns true if the command should fetch attestations from the GitHub API
57// It checks that a bundle path is not provided and that the "use bundle from registry" flag is not set
58func (opts *Options) FetchAttestationsFromGitHubAPI() bool {
59 return opts.BundlePath == "" && !opts.UseBundleFromRegistry
60}
61
62// AreFlagsValid checks that the provided flag combination is valid
63// and returns an error otherwise

Callers 1

getAttestationsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected