Skip to content
  • Thomas Gagneret's avatar
    scripts: zephyr_module: Add URL, version to SPDX · 0d05318c
    Thomas Gagneret authored
    
    
    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: default avatarThomas Gagneret <thomas.gagneret@hexploy.com>
    0d05318c
Loading