Skip to content

Commit

Permalink
Add heartbeat and hash fields to SBOM
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Sep 29, 2023
1 parent b9dfa9a commit 8cffd2b
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 42 deletions.
4 changes: 3 additions & 1 deletion proto/sbom/sbom.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ message SBOMPayload {
message SBOMEntity {
SBOMSourceType type = 1;
string id = 2; // Unique identifier to be able to correlated and "deduplicate" SBOM
repeated string dd_tags = 7; // datadog tags that will be added by the agent depending of the SBOMSourceType
optional google.protobuf.Timestamp generatedAt = 3; // the datetime of the SBOM generation
repeated string repo_tags = 4; // the tags of the container image
bool inUse = 5; // Whether the SBOM concerns a running entity (running container) or an inert entity (image not used by any container)
optional google.protobuf.Duration generationDuration = 6; // SBOM generation duration (how long it took to generate the SBOM report)
repeated string dd_tags = 7; // datadog tags that will be added by the agent depending of the SBOMSourceType
bool heartbeat = 8; // Whether the SBOM is identical to the previously sent one
string hash = 9; // Hash of the SBOM
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.
Expand Down
101 changes: 60 additions & 41 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 8cffd2b

Please sign in to comment.