fix(sbom): preserve portable Ruff hash locks - #226
Draft
seonghobae wants to merge 6 commits into
Draft
Conversation
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.16.1 to 0.16.3. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.16.1...0.16.3) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.16.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| - .github/workflows/repair-pr-224.yml | ||
|
|
||
| permissions: | ||
| contents: write |
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 45 | ||
| permissions: | ||
| contents: write |
| - .github/workflows/repair-pr-226-multihash.yml | ||
|
|
||
| permissions: | ||
| contents: write |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Buyer problem
Ruff 0.16.3 publishes several platform-specific artifacts. Dependabot correctly records all reviewed SHA-256 hashes, but the release-SBOM validator rejected any lock entry with more than one hash, so every supported Python CI lane failed before release evidence could be generated.
Repair
This branch retains the Ruff 0.16.3 exact version and reviewed hashes, then changes the deterministic lock parser to accept one or more unique canonical SHA-256 digests for a pinned package. Runtime SBOM components must still match the pinned version and marker and their reviewed digest must be a member of the immutable hash set.
The bounded repair adds focused regressions for portable multi-hash entries, duplicate-hash rejection, and manifest-digest membership, updates the changelog, executes the complete hash-locked test/coverage/compile suite, and removes its one-shot writer workflow before delivery.
Scope