Skip to content

Commit 868469c

Browse files
committed
feat: extended error information in SBOM browser
1 parent b3c248e commit 868469c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/harbor-sbom-browser/src/utils.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ pub enum DownloadSbomError {
2828
cosign_stdout: String,
2929
cosign_stderr: String,
3030
cosign_status: std::process::ExitStatus,
31+
repository: String,
32+
digest: String,
3133
},
3234
#[snafu(display("cannot parse DSSE"))]
3335
ParseDsse { source: serde_json::Error },
@@ -80,6 +82,8 @@ pub async fn verify_attestation(
8082
cosign_stdout: String::from_utf8_lossy(&cmd_output.stdout).to_string(),
8183
cosign_stderr: stderr_output.to_string(),
8284
cosign_status: cmd_output.status,
85+
repository: repository.to_string(),
86+
digest: digest.to_string(),
8387
});
8488
}
8589

0 commit comments

Comments
 (0)