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

Version of depscan #121

Closed
algomaster99 opened this issue Sep 11, 2023 · 1 comment · Fixed by #122
Closed

Version of depscan #121

algomaster99 opened this issue Sep 11, 2023 · 1 comment · Fixed by #122

Comments

@algomaster99
Copy link
Contributor

Hi! It would be nice to have a -v or --version flag in the binary so that I can view the version of depscan I am using. An enhancement over this could be to store the version of the depscan in reports generated by it.

@prabhu
Copy link
Member

prabhu commented Sep 11, 2023

Hi @algomaster99, it's a useful feature. Would you be interested in contributing this?

As per this thread, the below snippet works

>>> import pkg_resources
>>> my_version = pkg_resources.get_distribution('my-package-name').version

The metadata.tools section can be updated to append the details about depscan. The version can also be incremented to indicate that depscan enhanced an existing sbom.

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 a pull request may close this issue.

2 participants