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

Overwrite existing files when a new SBOM is saved #355

Closed
wants to merge 1 commit into from

Conversation

trilleplay
Copy link

A change is made so when a new SBOM is produced it overwrites any existing file with the same name. This change is introduced due to the current behavior which simply writes the bytes to the same file, so if the previous files length was longer, that content would still remain. Leading to an invalid SBOM being created by the CLI.

A change is made so when a new SBOM is produced it overwrites any
existing file with the same name. This change is introduced due to the
current behavior which simply writes the bytes to the same file, so if
the previous files length was longer, that content would still remain.
Leading to an invalid SBOM being created by the CLI.

Signed-off-by: Tristan Farkas <[email protected]>
@andreas-hilti
Copy link
Contributor

This is a duplicate of
#315

@trilleplay trilleplay closed this Feb 10, 2024
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