Example 8 of 8 · real output · sbomlyze v0.8.0

A license change in a minor release

Akka 2.6.20 → 2.7.0 changed its license from Apache-2.0 to the Business Source License 1.1, and deny_licenses catches it on the upgrade.

javamaven License changedeny_licenses policyCross-format license matching

What happened

In September 2022 Lightbend moved Akka to the Business Source License 1.1. The published POMs on Maven Central say Apache-2.0 for 2.6.20 and BUSL-1.1 for 2.7.0, and Apache Pekko was forked from Akka 2.6.x because of it. For a project that only bumps a minor version, the license change arrives as an ordinary upgrade.

Syft reads the license from the jar’s manifest (Bundle-License, an OSGi field) as <url>;description=BUSL-1.1, and SPDX folds that into a LicenseRef- id. sbomlyze maps all of these to BUSL-1.1, so deny_licenses: ["BUSL-1.1"] fails the upgrade in any of the three formats. The rule checks licenses that newly appear on changed packages, not only on new ones.

What this does not prove. A minimal reproduction: the two published akka-actor jars scanned on their own. A real service would show the same change among its other dependencies.

Inputs

Generated once with Syft 1.56.0, linux/amd64, and kept unchanged in testdata/showcase in the repository. Every sbomlyze release re-runs the commands below on these exact files.

akka-actor_2.13-2.6.20.jar
# https://repo1.maven.org/maven2/com/typesafe/akka/akka-actor_2.13/2.6.20/akka-actor_2.13-2.6.20.jar
syft scan dir:akka-2.6.20 -o syft-json=akka-actor-2.6.20.syft.json
syft scan dir:akka-2.6.20 -o cyclonedx-json=akka-actor-2.6.20.cdx.json
syft scan dir:akka-2.6.20 -o spdx-json=akka-actor-2.6.20.spdx.json
akka-actor-2.6.20.syft.json 39c451fe1d38…   akka-actor-2.6.20.cdx.json a4b287ba4299…   akka-actor-2.6.20.spdx.json 5175c5cefd5c…  
akka-actor_2.13-2.7.0.jar
# https://repo1.maven.org/maven2/com/typesafe/akka/akka-actor_2.13/2.7.0/akka-actor_2.13-2.7.0.jar
syft scan dir:akka-2.7.0 -o syft-json=akka-actor-2.7.0.syft.json
syft scan dir:akka-2.7.0 -o cyclonedx-json=akka-actor-2.7.0.cdx.json
syft scan dir:akka-2.7.0 -o spdx-json=akka-actor-2.7.0.spdx.json
akka-actor-2.7.0.syft.json 360f95808d74…   akka-actor-2.7.0.cdx.json 4e2f23b01520…   akka-actor-2.7.0.spdx.json f1436a43f508…  

Policy files: policy-licenses.json

Output

Diff

$ sbomlyze akka-actor-2.6.20.syft.json akka-actor-2.7.0.syft.json · exit 1
Key Findings:
  🔄 Scanned akka-actor changed: 2.6.20 → 2.7.0
  🔄 1 version upgrades (1 minor) among 1 shared packages
  📜 License shift: permissive -1

~ Changed (1):
  ~ akka-actor_2.13 @ /akka-actor_2.13-2.7.0.jar
      version: 2.6.20 -> 2.7.0
      licenses: [https://www.apache.org/licenses/LICENSE-2.0.html;description=Apache-2.0] -> [https://raw.githubusercontent.com/akka/akka/main/LICENSE;description=BUSL-1.1]
      hash[SHA1]: 8dc5a2cef5a428c7b159f44486bed14cc964a227 -> a62a62a0011bc7651a84addb23b23ef1c7b32a6a
Full text output (41 lines)
SBOM Comparison
======================================================================
                        Before                       After
File:                   akka-actor-2.6.20.syft.json  akka-actor-2.7.0.syft.json
File Size:              19 KB                        19 KB
Format:                 Syft JSON 16.1.12            Syft JSON 16.1.12
Generator:              syft 1.56.0                  syft 1.56.0
OS:                     (none)                       (none)
Source:                 akka-actor                   akka-actor
Source Type:            directory                    directory
Total Components:       1                            1
  maven:                1                            1               
Data Quality:
  PURL Coverage:        100.0%                       100.0%
  License Coverage:     100.0%                       100.0%
  Hash Coverage:        100.0%                       100.0%
  CPE Coverage:         100.0%                       100.0%
======================================================================

Scan Context:
  Schema:                 16.1.12                 16.1.12
  Scan Scope:             squashed                squashed

Key Findings:
  🔄 Scanned akka-actor changed: 2.6.20 → 2.7.0
  🔄 1 version upgrades (1 minor) among 1 shared packages
  📜 License shift: permissive -1

📊 Drift Summary:
  📦 Version drift:   1 components

📄 Files added: 1, removed: 1

~ Changed (1):
  ~ akka-actor_2.13 @ /akka-actor_2.13-2.7.0.jar
      version: 2.6.20 -> 2.7.0
      licenses: [https://www.apache.org/licenses/LICENSE-2.0.html;description=Apache-2.0] -> [https://raw.githubusercontent.com/akka/akka/main/LICENSE;description=BUSL-1.1]
      hash[SHA1]: 8dc5a2cef5a428c7b159f44486bed14cc964a227 -> a62a62a0011bc7651a84addb23b23ef1c7b32a6a

text (2 KB) · json (16 KB) · markdown (2 KB) · html (5 KB) · sarif (5 KB) · junit (1 KB) · patch (1 KB) · open the HTML report

With deny_licenses (Syft JSON)

$ sbomlyze akka-actor-2.6.20.syft.json akka-actor-2.7.0.syft.json --policy policy-licenses.json · exit 1
Key Findings:
  🔄 Scanned akka-actor changed: 2.6.20 → 2.7.0
  🔄 1 version upgrades (1 minor) among 1 shared packages
  📜 License shift: permissive -1

~ Changed (1):
  ~ akka-actor_2.13 @ /akka-actor_2.13-2.7.0.jar
      version: 2.6.20 -> 2.7.0
      licenses: [https://www.apache.org/licenses/LICENSE-2.0.html;description=Apache-2.0] -> [https://raw.githubusercontent.com/akka/akka/main/LICENSE;description=BUSL-1.1]
      hash[SHA1]: 8dc5a2cef5a428c7b159f44486bed14cc964a227 -> a62a62a0011bc7651a84addb23b23ef1c7b32a6a

❌ Policy Errors (1):
  [deny_licenses] akka-actor_2.13 @ /akka-actor_2.13-2.7.0.jar: now has denied license BUSL-1.1
Full text output (45 lines)
SBOM Comparison
======================================================================
                        Before                       After
File:                   akka-actor-2.6.20.syft.json  akka-actor-2.7.0.syft.json
File Size:              19 KB                        19 KB
Format:                 Syft JSON 16.1.12            Syft JSON 16.1.12
Generator:              syft 1.56.0                  syft 1.56.0
OS:                     (none)                       (none)
Source:                 akka-actor                   akka-actor
Source Type:            directory                    directory
Total Components:       1                            1
  maven:                1                            1               
Data Quality:
  PURL Coverage:        100.0%                       100.0%
  License Coverage:     100.0%                       100.0%
  Hash Coverage:        100.0%                       100.0%
  CPE Coverage:         100.0%                       100.0%
======================================================================

Scan Context:
  Schema:                 16.1.12                 16.1.12
  Scan Scope:             squashed                squashed

Key Findings:
  🔄 Scanned akka-actor changed: 2.6.20 → 2.7.0
  🔄 1 version upgrades (1 minor) among 1 shared packages
  📜 License shift: permissive -1

📊 Drift Summary:
  📦 Version drift:   1 components

📄 Files added: 1, removed: 1

~ Changed (1):
  ~ akka-actor_2.13 @ /akka-actor_2.13-2.7.0.jar
      version: 2.6.20 -> 2.7.0
      licenses: [https://www.apache.org/licenses/LICENSE-2.0.html;description=Apache-2.0] -> [https://raw.githubusercontent.com/akka/akka/main/LICENSE;description=BUSL-1.1]
      hash[SHA1]: 8dc5a2cef5a428c7b159f44486bed14cc964a227 -> a62a62a0011bc7651a84addb23b23ef1c7b32a6a


❌ Policy Errors (1):
  [deny_licenses] akka-actor_2.13 @ /akka-actor_2.13-2.7.0.jar: now has denied license BUSL-1.1

text (2 KB)

With deny_licenses (SPDX)

$ sbomlyze akka-actor-2.6.20.spdx.json akka-actor-2.7.0.spdx.json --policy policy-licenses.json · exit 1
Key Findings:
  🔄 Scanned akka-actor changed: 2.6.20 → 2.7.0
  🔄 1 version upgrades (1 minor) among 1 shared packages
  📜 License shift: permissive -1

~ Changed (1):
  ~ akka-actor_2.13 @ /akka-actor_2.13-2.7.0.jar
      version: 2.6.20 -> 2.7.0
      licenses: [LicenseRef-https---www.apache.org-licenses-LICENSE-2.0.html-description-Apache-2.0] -> [LicenseRef-https---raw.githubusercontent.com-akka-akka-main-LICENSE-description-BUSL-1.1]
      hash[SHA1]: 8dc5a2cef5a428c7b159f44486bed14cc964a227 -> a62a62a0011bc7651a84addb23b23ef1c7b32a6a

❌ Policy Errors (1):
  [deny_licenses] akka-actor_2.13 @ /akka-actor_2.13-2.7.0.jar: now has denied license BUSL-1.1
Full text output (41 lines)
SBOM Comparison
======================================================================
                        Before                       After
File:                   akka-actor-2.6.20.spdx.json  akka-actor-2.7.0.spdx.json
File Size:              11 KB                        11 KB
Format:                 SPDX 2.3                     SPDX 2.3
Generator:              syft 1.56.0                  syft 1.56.0
OS:                     (none)                       (none)
Source:                 akka-actor                   akka-actor
Source Type:            directory                    directory
Total Components:       1                            1
  maven:                1                            1               
Data Quality:
  PURL Coverage:        100.0%                       100.0%
  License Coverage:     100.0%                       100.0%
  Hash Coverage:        100.0%                       100.0%
  CPE Coverage:         100.0%                       100.0%
======================================================================

Key Findings:
  🔄 Scanned akka-actor changed: 2.6.20 → 2.7.0
  🔄 1 version upgrades (1 minor) among 1 shared packages
  📜 License shift: permissive -1

📊 Drift Summary:
  📦 Version drift:   1 components

📄 Files added: 1, removed: 1

~ Changed (1):
  ~ akka-actor_2.13 @ /akka-actor_2.13-2.7.0.jar
      version: 2.6.20 -> 2.7.0
      licenses: [LicenseRef-https---www.apache.org-licenses-LICENSE-2.0.html-description-Apache-2.0] -> [LicenseRef-https---raw.githubusercontent.com-akka-akka-main-LICENSE-description-BUSL-1.1]
      hash[SHA1]: 8dc5a2cef5a428c7b159f44486bed14cc964a227 -> a62a62a0011bc7651a84addb23b23ef1c7b32a6a


❌ Policy Errors (1):
  [deny_licenses] akka-actor_2.13 @ /akka-actor_2.13-2.7.0.jar: now has denied license BUSL-1.1

text (2 KB)

Checked at every release

The site is not updated if any of these stop holding for a new sbomlyze release.

RunCheck
diffdiff.changed[name=akka-actor_2.13].drift.licenses_diff = ["+BUSL-1.1","-Apache-2.0"]
policytext contains “now has denied license BUSL-1.1”
policy-spdxtext contains “now has denied license BUSL-1.1”

Sources

← One image, three formats All examples