cli/pkg/cmd/attestation/inspect
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
..
bundle.go gh-attestation cmd integration (#8698) 2024-04-01 11:13:47 -06:00
bundle_test.go gh-attestation cmd integration (#8698) 2024-04-01 11:13:47 -06:00
inspect.go Support offline mode for gh attestation verify 2024-04-24 10:24:23 -04:00
inspect_test.go Fix attestation cmd offline unit test failure (#8933) 2024-04-11 18:09:10 -06:00
options.go Fix attestation cmd offline unit test failure (#8933) 2024-04-11 18:09:10 -06:00
policy.go gh-attestation cmd integration (#8698) 2024-04-01 11:13:47 -06:00