Skip to content

Commit b917ba6

Browse files
committed
feat: show decoding command only when vsa is generated
Signed-off-by: Demolus13 <[email protected]>
1 parent 0c04450 commit b917ba6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/macaron/console.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,11 @@ def make_layout(self) -> Group:
448448
"[bold blue]Verification Summary Attestation[/]",
449449
self.verification_summary_attestation,
450450
)
451-
vsa_table.add_row(
452-
"[bold blue]Decode and Inspect the Content[/]",
453-
f"cat {self.verification_summary_attestation} | jq -r [white]'.payload'[/] | base64 -d | jq",
454-
)
451+
if self.verification_summary_attestation != "No VSA generated.":
452+
vsa_table.add_row(
453+
"[bold blue]Decode and Inspect the Content[/]",
454+
f"cat {self.verification_summary_attestation} | jq -r [white]'.payload'[/] | base64 -d | jq",
455+
)
455456

456457
layout = layout + [vsa_table]
457458
elif self.command == "find-source":

0 commit comments

Comments
 (0)