Add script to check for purl validity


Validates github/gitlab Package URLs (PURLs) and checks whether the
referenced repo/project, ref (branch/tag/commit), and subpath actually
exist, via the GitHub/GitLab APIs.

PURLs can be passed as CLI arguments, read from a plain text file
(--file, one per line), or extracted from a CycloneDX JSON SBOM
(--sbom, recursively collecting every "purl" field). Optional GitHub/
GitLab tokens raise rate limits and allow checking private repos.

Exits non-zero if any purl is not found, malformed, or could not be
verified; a summary of ok/not found/error/invalid/skipped counts is
printed at the end.

Change-Id: I60a3425f3c6fac77eedae36482427c6c487ee60e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commitf0ec0059a99cc35da847a908fbe643592e09b4c5
parentfb633c1faf617be9145252553f3bf29089f57e83
authorKai Köhne <kai.koehne@qt.io>
committerKai Köhne <kai.koehne@qt.io>
commit timeWed, 12 Aug 2026 09:39:05 +0000