Skip to content

Add option to override reported input_file in SBOM

What does this MR do and why?

Add option to override input_file in SBOMs.

By default, the analyzer will report the lockfile as the input_file in the SBOM metadata. This change allows the user to override this logic via a new environment variable. When this varable is set to true the input_file is set to the build file (e.g. build.gradle) if it is found.

Related issues

Ability to track/link dependencies.lock file to... (gitlab-org/gitlab#512467 - closed) • Igor Frenkel • 17.9 • On track

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports

Loading