mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 14:02:26 +01:00
bug: remove chance for panic; provide default attestation path (#1214)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user