Skip to content

Commit 4042914

Browse files
authored
feat(cli): show digest for string material (#1712)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent 4addfbe commit 4042914

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/cli/internal/action/attestation_status.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ func setMaterialValue(w *v1.Attestation_Material, o *AttestationStatusResultMate
335335
switch m := w.GetM().(type) {
336336
case *v1.Attestation_Material_String_:
337337
o.Value = m.String_.GetValue()
338+
o.Hash = m.String_.GetDigest()
338339
case *v1.Attestation_Material_ContainerImage_:
339340
o.Value = m.ContainerImage.GetName()
340341
o.Hash = m.ContainerImage.GetDigest()

0 commit comments

Comments
 (0)