Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sbom] Add generation duration #221

Merged
merged 1 commit into from
Jan 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions proto/sbom/sbom.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ option go_package = "github.com/DataDog/agent-payload/v5/sbom";

package datadog.sbom;

import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "proto/deps/github.com/CycloneDX/specification/schema/bom-1.4.proto";

Expand All @@ -16,11 +17,12 @@ message SBOMPayload {
}

message SBOMEntity {
SBOMSourceType type = 1;
string id = 2; // Unique identifier to be able to correlated and "deduplicate" SBOM
optional google.protobuf.Timestamp generatedAt = 3; // the datetime of the SBOM generation
repeated string tags = 4; // datadog tags that will be added by the agent depending of the SBOMSourceType
bool inUse = 5; // Whether the SBOM concerns a running entity (running container) or an inert entity (image not used by any container)
SBOMSourceType type = 1;
string id = 2; // Unique identifier to be able to correlated and "deduplicate" SBOM
optional google.protobuf.Timestamp generatedAt = 3; // the datetime of the SBOM generation
repeated string tags = 4; // datadog tags that will be added by the agent depending of the SBOMSourceType
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)
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
71 changes: 45 additions & 26 deletions sbom/sbom.pb.go

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