Skip to content

Commit

Permalink
add SBOM status to SBOM payload (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliDatadog authored Sep 29, 2023
1 parent 82dc95d commit 544d876
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 34 deletions.
10 changes: 9 additions & 1 deletion proto/sbom/sbom.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ message SBOMEntity {
optional google.protobuf.Duration generationDuration = 6; // SBOM generation duration (how long it took to generate the SBOM report)
oneof sbom {
cyclonedx.v1_4.Bom cyclonedx = 10; // only cyclonedx will be supported initially but putting it optional will allow us to move to another format later
// spdx.SBOM spdx = 11; // SPDX can be added later as any other format.
// spdx.SBOM spdx = 13; // SPDX can be added later as any other format.
string error = 12;
}
SBOMStatus status = 11;
}

enum SBOMSourceType {
Expand All @@ -38,3 +40,9 @@ enum SBOMSourceType {
HOST_FILE_SYSTEM = 3;
CI_PIPELINE = 4;
}

enum SBOMStatus {
SUCCESS = 0;
FAILED = 1;
PENDING = 2;
}
149 changes: 116 additions & 33 deletions sbom/sbom.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 544d876

Please sign in to comment.