diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-08-25 16:11:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 16:11:50 -0400 |
commit | bb7ae54ef70fb7af401aee3ff20000ae60854e09 (patch) | |
tree | fbdc8cf83bd93d294841fca325ccb4ef71601ca1 /cmd/podman/images/trust_set.go | |
parent | f98215c668746e9a7b9603448428cd1301a56eac (diff) | |
parent | 61fe95bb4fa7b6f83cd2a013877664db90cd773b (diff) | |
download | podman-bb7ae54ef70fb7af401aee3ff20000ae60854e09.tar.gz podman-bb7ae54ef70fb7af401aee3ff20000ae60854e09.tar.bz2 podman-bb7ae54ef70fb7af401aee3ff20000ae60854e09.zip |
Merge pull request #15466 from mtrmac/image-trust-sigstore
podman image trust overhaul, incl. sigstore
Diffstat (limited to 'cmd/podman/images/trust_set.go')
-rw-r--r-- | cmd/podman/images/trust_set.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/images/trust_set.go b/cmd/podman/images/trust_set.go index 832e9f724..e7339f0b1 100644 --- a/cmd/podman/images/trust_set.go +++ b/cmd/podman/images/trust_set.go @@ -53,7 +53,7 @@ File(s) must exist before using this command`) } func setTrust(cmd *cobra.Command, args []string) error { - validTrustTypes := []string{"accept", "insecureAcceptAnything", "reject", "signedBy"} + validTrustTypes := []string{"accept", "insecureAcceptAnything", "reject", "signedBy", "sigstoreSigned"} valid, err := isValidImageURI(args[0]) if err != nil || !valid { @@ -61,7 +61,7 @@ func setTrust(cmd *cobra.Command, args []string) error { } if !util.StringInSlice(setOptions.Type, validTrustTypes) { - return fmt.Errorf("invalid choice: %s (choose from 'accept', 'reject', 'signedBy')", setOptions.Type) + return fmt.Errorf("invalid choice: %s (choose from 'accept', 'reject', 'signedBy', 'sigstoreSigned')", setOptions.Type) } return registry.ImageEngine().SetTrust(registry.Context(), args, setOptions) } |