You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the packageurl-python library to construct purls instead of manual
string building. Support two modes for purl specification in package
settings:
- Full purl string (`purl` field) used as-is, e.g.
`pkg:generic/my-fork@1.0.0`
- Individual field overrides (`purl_type`, `purl_namespace`,
`purl_name`, `purl_version`) that override the default
construction from global settings and package identity
The two modes are mutually exclusive, enforced by a model validator.
A default purl (`pkg:pypi/<name>@<version>`) is now always generated.
The global `purl_type` setting (default: `pypi`) controls the
default type for all packages.
Add `repository_url` to `SbomSettings` as a global purl qualifier
(e.g. `?repository_url=https://packages.redhat.com`) that is added
to every downstream purl. Per-package `repository_url` overrides the
global value.
Downstream purl construction cascades:
per-package `purl` (full override) >
per-package field overrides (`purl_type`, etc.) >
global defaults from `SbomSettings`
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Martin Prpič <mprpic@redhat.com>
0 commit comments