aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-08-30 11:00:30 -0400
committerGitHub <noreply@github.com>2022-08-30 11:00:30 -0400
commitb401ac2a75f36d1c32551936907b3b1df8ecb070 (patch)
treebe65076f7d2567ff57c82a07e5760d30e6780a82 /cmd
parent01c76691154eb0569b76d91c673153897e2f7653 (diff)
parent68ebf13d48be39b3509601527395f8ec2d56a329 (diff)
downloadpodman-b401ac2a75f36d1c32551936907b3b1df8ecb070.tar.gz
podman-b401ac2a75f36d1c32551936907b3b1df8ecb070.tar.bz2
podman-b401ac2a75f36d1c32551936907b3b1df8ecb070.zip
Merge pull request #15533 from mtrmac/trust-4.2
podman image trust overhaul, incl. sigstore
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/images/trust_set.go4
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)
}