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
()
| 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 |
| 58 | func (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 |