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

scripts: zephyr_module: Add URL, version to SPDX #125

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

mlohvynenko
Copy link

Improve the SPDX with the current values:

  • URL: extracted from git remote. If more than one remote, URL is not set.
  • Version: extracted from git rev-parse (commit id).
  • PURL and CPE for Zephyr: generated from URL and version.

For zephyr, the tag is extracted, if present, and replace the commit id for the version field.
Since official modules does not have tags, tags are not yet extracted for modules.

To track vulnerabilities from modules dependencies, a new SBOM, modules-deps.spdx was created. It contains the external-references provided by the modules. It allows to easily track vulnerabilities from these external dependencies.

Signed-off-by: Thomas Gagneret [email protected]
(cherry picked from commit 0d05318)

Change to support mbedtls recent update in their module.yml ( zephyrproject-rtos/mbedtls@c91e540 )

Improve the SPDX with the current values:
 - URL: extracted from `git remote`. If more than one remote, URL is not
 set.
 - Version: extracted from `git rev-parse` (commit id).
 - PURL and CPE for Zephyr: generated from URL and version.

For zephyr, the tag is extracted, if present, and replace the commit id for
the version field.
Since official modules does not have tags, tags are not yet extracted for
modules.

To track vulnerabilities from modules dependencies, a new SBOM,
`modules-deps.spdx` was created. It contains the `external-references`
provided by the modules. It allows to easily track vulnerabilities from
these external dependencies.

Signed-off-by: Thomas Gagneret <[email protected]>
(cherry picked from commit 0d05318)
@firscity firscity merged commit 45bc34c into xen-troops:zephyr-v3.6.0-xt Sep 23, 2024
4 checks passed
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.

3 participants