bug: remove chance for panic; provide default attestation path (#1214)

This commit is contained in:
Christopher Angelo Phillips
2022-09-19 15:50:33 +00:00
committed by GitHub
parent ad263e6562
commit 0f99215b2c
2 changed files with 24 additions and 1 deletions
+8
View File
@@ -40,6 +40,14 @@ func TestAttestCmd(t *testing.T) {
},
pw: "",
},
{
name: "can encode syft.json as the predicate given a user format typo",
args: []string{"attest", "-o", "spdx-jsonx", "--key", "cosign.key", img},
assertions: []traitAssertion{
assertSuccessfulReturnCode,
},
pw: "",
},
}
for _, test := range tests {