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
{{ message }}
Repository navigation
Fix incorrect package checksums for Bazel registry dependencies #16
The SBOM generator copies hashes from MODULE.bazel.lock, registryFileHashes of source.json into package checksum(checksumValue) fields.
These values are hashes of the registry JSON files. The archive checksum is stored inside source.json, in its integrity field.
Example:
For boost.config@1.83.0.bcr.4:
Current SBOM checksum starts with 0a5b… (source.json hash).
The archive checksum starts with b927….
Analysis results
This affects 18 Boost entries in the inspected reference_integration SBOM. Checking the correct archive against the SBOM therefore gives a checksum mismatch. JSON schema validation does not detect this.
Solution
Download source.json and verify its hash against the module lockfile.
Read the archive SHA-256 from integrity and use it in SPDX and CycloneDX output. Include the archive download URL and support previously downloaded metadata for offline builds.
Activity