← Back to Pull requests

Fetch the license databases from sbom-tools, and stop building them here #502

Open
unknown opened this pull request with 257 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 29, 2026 11:12 UTC
Author

The per-distro license databases are data this action downloads, not part of the action. sbomify/sbom-tools#63 moves the generator and its publishing workflow there, and they get published as release assets next to the bundles. This PR removes them from here and switches the download over.

What changes

  • Removed: license_db_generator.py, scripts/license_db_matrix.py, the license-db.yaml workflow and the sbomify-license-db entry point.

  • Removed: the local-generation fallback (SBOMIFY_ENABLE_LICENSE_DB_GENERATION). It needed the generator and was off by default anyway, since Ubuntu and Debian take hours.

  • The license-db source now downloads {distro}-{version}.json.gz from the sbom-tools release that tools.toml pins. A master image uses rolling, the same as the bundles do (tool_manifest.tools_release()). This is a plain asset download, not a releases API call, so it is not rate limited. A 404 there is logged at debug, not as a warning.

  • Fallback: every sbomify-action release so far carries the databases, so the existing lookup across recent releases here stays in place. It can come out once tools.toml pins an sbom-tools release that has them.

  • The check that the generator's version list agrees with lifecycle_data.py moves to sbom-tools along with the generator. check_lifecycle_staleness.py keeps everything else.
  • license_normalizer.py and lifecycle_data.py stay here because the action uses both at run time. The generator imports them from the published package.

    Testing

  • New tests/test_license_db_release.py covers three cases: download from the pinned sbom-tools release without touching the API, rolling for a master image, and falling back to this repo's releases on a 404.

  • ruff check, ruff format --check and mypy are clean. Full pytest: 4231 passed, coverage 86.11%.

  • check_lifecycle_staleness.py --offline is clean.

  • License DB Integration Test should keep passing through the fallback until the pin moves.
  • 🤖 Generated with Claude Code

    Diff: 257 lines (+192 / -65) across 3 files Reviewer: copilot-pull-request-reviewer[bot] Review duration: 2m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.39) × (1 − Review Confidence (0.25)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 257 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 32% · Reviewer familiarity: 35%
    25%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.332
    Real PR Conversation Timeline
    1 comments
    "Review active on #502"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 25.4% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 25.4% · Lower = rushed or shallow review
    25.4%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 29.2% · Safe to merge
    29.2%