Fix attest with --key (#2551)

Fix passing "--key" to the attest command. Additionally, pull in an update to
the clio CLI library to permit unit testing that flags and env vars are parsed
to the correct field on command options structs. This testing strategy was
needed here because testing attestation in an end to end test requires a
prohibitive amount of setup.

---------

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
William Murphy
2024-01-31 16:39:17 -05:00
committed by GitHub
co-authored by Alex Goodman
parent 3893f80052
commit bbddac1f9d
9 changed files with 147 additions and 49 deletions
+1
View File
@@ -191,6 +191,7 @@ func TestPackagesCmdFlags(t *testing.T) {
},
},
{
// TODO: this could be a unit test
name: "responds-to-package-cataloger-search-options",
args: []string{"--help"},
env: map[string]string{