Use in-toto CycloneDX predicate to be compatible with cosign (#1270)

Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
This commit is contained in:
Arnaud J Le Hors
2022-10-19 09:37:52 -04:00
committed by GitHub
co-authored by Christopher Phillips
parent e2d06cecb7
commit d3ee24017e
4 changed files with 14 additions and 13 deletions
+1 -2
View File
@@ -359,8 +359,7 @@ func formatPredicateType(format sbom.Format) string {
case spdx22json.ID:
return in_toto.PredicateSPDX
case cyclonedxjson.ID:
// Tentative see https://github.com/in-toto/attestation/issues/82
return "https://cyclonedx.org/bom"
return in_toto.PredicateCycloneDX
case syftjson.ID:
return "https://syft.dev/bom"
default:
+1 -1
View File
@@ -32,7 +32,7 @@ func Completion() *cobra.Command {
`,
DisableFlagsInUseLine: true,
ValidArgs: []string{"bash", "zsh", "fish"},
Args: cobra.ExactValidArgs(1),
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
RunE: func(cmd *cobra.Command, args []string) error {
var err error
switch args[0] {