cli/pkg/cmd/attestation/verify
Zach Steindler d9f7b922d0 Support offline mode for gh attestation verify
The main change is previously we always instantiated a TUF client for
the public good and GitHub Sigstore instances. Now we only instantiate
the TUF client we need, or no client if we are provided a
custom trusted root.

Note that `gh attestation verify` still requires authentication, that is
being addressed in https://github.com/cli/cli/pull/8995.

Some other changes are coming along for the ride:
- Set TUF cache validity to 1 day, to help serial verification
- Attempt to infer verification policy based on custom trusted root
- Make command output more friendly if you leave off required arguments

Signed-off-by: Zach Steindler <steiza@github.com>
2024-04-24 10:24:23 -04:00
..
options.go Merge pull request #8949 from steiza/steiza/multi-attestation 2024-04-12 11:12:59 -04:00
options_test.go gh-attestation cmd integration (#8698) 2024-04-01 11:13:47 -06:00
policy.go Updates from linter feedback 2024-04-09 17:34:45 -04:00
policy_test.go gh-attestation cmd integration (#8698) 2024-04-01 11:13:47 -06:00
verify.go Support offline mode for gh attestation verify 2024-04-24 10:24:23 -04:00
verify_test.go Merge pull request #8949 from steiza/steiza/multi-attestation 2024-04-12 11:12:59 -04:00