-
Notifications
You must be signed in to change notification settings - Fork 29
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
Report pip build dependencies in the SBOM #801
Report pip build dependencies in the SBOM #801
Conversation
/retest |
/retest |
9dca171
to
28bc742
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approach LGTM, will ACK once the CI failures are addressed.
@@ -194,6 +194,10 @@ def fetch_pip_source(request: Request) -> RequestOutput: | |||
if dependency["package_type"] == "wheel": | |||
pip_package_binary = True | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message nitpick:
s/declared as requirements_build_files/declared via the 'requirements_build_files' input JSON option
Cachi2's default approach to prefetching pip dependencies is to only download sdists. This means that all wheels will need to be compiled from source, which usually means that additional dependencies will be necessary during the build process. This patch prepares a property that will be used to indicate in the SBOM that a dependency was defined in a requirements_build_file. Signed-off-by: Bruno Pimentel <[email protected]>
fa9294f
to
fa61c89
Compare
/retest |
Considering that the user configured his repository correctly, the only dependencies that should be present in files declared via the 'requirements_build_files' input JSON option are build dependencies. Having this info in the SBOM will help future security analysis perfomed on the built artifact. Signed-off-by: Bruno Pimentel <[email protected]>
fa61c89
to
7433bbf
Compare
Considering that the user configured his repository correctly, the only dependencies that should be present in files declared as requirements_build_files are build dependencies. Having this info in the SBOM will help future security analysis perfomed on the built artifact.
Since there is no default CycloneDx property for pip build dependencies, we're creating a custom Cachi2 one.
Maintainers will complete the following section