Skip to content

Generate and add an SBOM to wheels (PEP 770)#130

Open
StanFromIreland wants to merge 4 commits intopython:masterfrom
StanFromIreland:sbom
Open

Generate and add an SBOM to wheels (PEP 770)#130
StanFromIreland wants to merge 4 commits intopython:masterfrom
StanFromIreland:sbom

Conversation

@StanFromIreland
Copy link
Copy Markdown
Member

@sethmlarson, could you please review?

@StanFromIreland
Copy link
Copy Markdown
Member Author

Ah, pathlib isn't in Python 2.7 🙃

Copy link
Copy Markdown

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general this looks good to me, do you have the "built" SBOM available so I can poke around with it with some validators?

"$schema": "http://cyclonedx.org/schema/bom-1.7.schema.json",
"version": 1,
"bomFormat": "CycloneDX",
"specVersion": "1.7",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funnily enough, many scanners don't recognize later SBOM versions. If you're not using new features it's better to use a lower version (like 1.4).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that's not ideal, IIRC since it has been a few days I think there was something only in the newer ones.

@StanFromIreland
Copy link
Copy Markdown
Member Author

Here are the extracted contents:

Details
tzdata-2026.1.dist-info/sboms$ cat sbom.cdx.json 
{
  "$schema": "http://cyclonedx.org/schema/bom-1.7.schema.json",
  "version": 1,
  "bomFormat": "CycloneDX",
  "specVersion": "1.7",
  "metadata": {
    "component": {
      "bom-ref": "pkg:pypi/[email protected]",
      "name": "tzdata",
      "version": "2026.1",
      "purl": "pkg:pypi/[email protected]",
      "type": "library",
      "components": [
        {
          "bom-ref": "https://www.iana.org/time-zones",
          "name": "tz",
          "version": "2026a",
          "type": "data",
          "data": [
            {
              "type": "dataset",
              "name": "IANA Time Zone Database",
              "description": "zic-compiled TZif timezone files"
            }
          ],
          "licenses": [
            {
              "license": {
                "name": "tz database license",
                "url": "https://data.iana.org/time-zones/tz-link.html"
              }
            }
          ]
        }
      ]
    }
  }
}

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.

2 participants