sbom: default license to GPL-3.0-or-later and pin CI to #10343 ref

Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>
pull/1201/head
Sameeh Jubran 2026-07-09 10:34:06 +03:00 committed by John Safranek
parent f0e4b404d5
commit 1f57f67db7
2 changed files with 15 additions and 12 deletions

View File

@ -9,7 +9,8 @@ on:
inputs: inputs:
wolfssl_ref: wolfssl_ref:
description: 'wolfssl git ref that provides scripts/gen-sbom' description: 'wolfssl git ref that provides scripts/gen-sbom'
default: 'master' # TODO: switch back to 'master' once wolfSSL/wolfssl#10343 merges.
default: 'refs/pull/10343/head'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
@ -32,14 +33,16 @@ jobs:
# wolfssl is checked out once and used for two things: built + installed # wolfssl is checked out once and used for two things: built + installed
# so wolfssh has a library to link, and its source tree (scripts/gen-sbom # so wolfssh has a library to link, and its source tree (scripts/gen-sbom
# + wolfssl/version.h) is passed to `make sbom` via WOLFSSL_DIR. Default # + wolfssl/version.h) is passed to `make sbom` via WOLFSSL_DIR. gen-sbom
# ref is master; until the wolfSSL SBOM change is on master, use the # is not yet on wolfssl master, so default to the open PR head that carries
# "Run workflow" button with wolfssl_ref set to the SBOM branch. # it (wolfSSL/wolfssl#10343) so CI actually exercises `make sbom` instead of
# silently skipping. TODO: switch the fallback back to 'master' once
# #10343 merges.
- name: Checkout wolfssl (gen-sbom + library source) - name: Checkout wolfssl (gen-sbom + library source)
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: wolfSSL/wolfssl repository: wolfSSL/wolfssl
ref: ${{ github.event.inputs.wolfssl_ref || 'master' }} ref: ${{ github.event.inputs.wolfssl_ref || 'refs/pull/10343/head' }}
path: wolfssl path: wolfssl
- name: Install SBOM validator (pyspdxtools) and pcpp - name: Install SBOM validator (pyspdxtools) and pcpp

View File

@ -89,12 +89,12 @@ SBOM_PKGNAME = wolfssh
SBOM_LICENSE_FILE = $(srcdir)/LICENSING SBOM_LICENSE_FILE = $(srcdir)/LICENSING
SBOM_DEP_WOLFSSL = yes SBOM_DEP_WOLFSSL = yes
# wolfSSH is GPLv3-or-commercial; its LICENSING uses the "GPLv3" abbreviation # wolfSSH is GPLv3-or-later (per the per-file source headers: "either version 3
# that older gen-sbom cannot parse (falls back to NOASSERTION). Default to the # of the License, or (at your option) any later version") or commercial. Its
# correct SPDX id so the SBOM is right regardless of gen-sbom version; commercial # LICENSING summary uses the "GPLv3" abbreviation, which gen-sbom's
# licensees can still override it (e.g. LicenseRef-wolfSSL-Commercial). # detect_license maps to GPL-3.0-only -- contradicting the headers -- so pin the
# Redundant-but-harmless once the detect_license fix lands in gen-sbom # header-accurate SPDX id here. Commercial licensees can still override it
# (wolfSSL/wolfssl#10343). # (e.g. LicenseRef-wolfSSL-Commercial).
SBOM_LICENSE_OVERRIDE ?= GPL-3.0-only SBOM_LICENSE_OVERRIDE ?= GPL-3.0-or-later
include scripts/sbom.am include scripts/sbom.am