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

Enhancement: Add support for task-depends.dot file #23

Open
pradyumna212 opened this issue Dec 4, 2024 · 3 comments
Open

Enhancement: Add support for task-depends.dot file #23

pradyumna212 opened this issue Dec 4, 2024 · 3 comments

Comments

@pradyumna212
Copy link

Currently bd_scan_yocto_via_sbom supports ONLY license.manifest (as option -l). It will be of great help to add support for "task-depends.dot" file, which is generated by Yocto build (https://docs.yoctoproject.org/bitbake/2.10/bitbake-user-manual/bitbake-user-manual-intro.html). I was using a custom script to convert the task-depends.dot to license.manifest.

@matthewb66
Copy link
Collaborator

Task-depends.dot contains all recipes in the project including dev dependencies, and also includes multiple hierarchical tasks per recipe (making it potentially very large).

For most use-cases, the focus of assessments is for packages in the delivered image excluding those ONLY used in the dev environment, and as far as I can tell, this list can only be determined from the license.manifest file.

Furthermore, full analysis of the project requires access to the build environment to scan the installed package files and confirm they match the intended target of the recipe, also looking for modified packages etc.

Scans performed outside the build environment using only the license.manifest (or task-depends.dot) file(s) can only determine unmodified, original packages as reported by OpenEmbedded, leading to potential gaps in analysis.

Please email me at [email protected] to confirm:

  • Why you want to scan task-depends.dot as opposed to license.manifest (are you trying to scan all recipes in the dev environment)?
  • The custom script you are using to process task-depends.dot

Also please confirm your company name so we can lookup your Black Duck license entitlement.

Thanks

@pradyumna212
Copy link
Author

Hi Matt,
I will drop an email from my @arm.com with details.

Thanks and Regards,
Pradyumna

@matthewb66
Copy link
Collaborator

I didn't see an email from you, but have gone ahead and added a new option '--task_depends_dot_file FILE' option to v1.0.18 in the devlocal branch.
Note this can be used with the '-l' option for license.manifest to scan only distributed dependencies, or without the '-l' option to scan all dependencies.
Please test the new option and confirm so this can be released.

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

No branches or pull requests

2 participants