Skip to content

Conversation

Shnatsel
Copy link
Contributor

Adds --output-pattern=binary and --output-pattern=cargo-target modes that emit SBOMs for compiled binaries and for all compilation targets (including Rust libraries that do not exist as standalone binaries) respectively.

@lfrancke please test this and let me know if --output-pattern=binary fulfills your needs.

@Shnatsel Shnatsel requested a review from lfrancke February 17, 2024 01:10
@Shnatsel Shnatsel requested a review from a team as a code owner February 17, 2024 01:10
Signed-off-by: Sergey "Shnatsel" Davidoff <[email protected]>
Signed-off-by: Sergey "Shnatsel" Davidoff <[email protected]>
…depaths go through it

Signed-off-by: Sergey "Shnatsel" Davidoff <[email protected]>
…d finish the filename logic for it

Signed-off-by: Sergey "Shnatsel" Davidoff <[email protected]>
Copy link
Contributor

@lfrancke lfrancke left a comment

Choose a reason for hiding this comment

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

Looking good to me.
I tried it on two repositories and the results look good.

When I had my PR for his (naive in comparison) I used the "lib" as a prefix so that the name of the artifact would look similar to the name of the SBOM.
But I also found out that the final name of an artifact is not currently exposed anywhere.

This might come with rust-lang/rfcs#3553
Anyway...good to go as is I think. There is no "correct" way to name these files so either way is good.

Just needs your DCO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants