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

add SBOM status to SBOM payload #274

Merged
merged 2 commits into from
Sep 29, 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
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;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add UNKNOWN ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When would it be unknown ?

}
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.