fix(ci): pin the ruff download checksum in CI - #10
Conversation
Applies the same fix as #9 to ci.yml, which was left with the identical gap. ruff-action v4.1.0 ships known checksums only up to ruff 0.15.20 and resolves no checksum from the manifest unless manifest-file is set, so pinning 0.16.0 installed ruff with no integrity verification over the Astral CDN mirror. Same artifact and runner as the release workflow (ubuntu-latest, x86_64, unknown-linux-gnu), so the same SHA-256 applies.
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 22 minutes Limit details: You’ve used the included review currently available. Your 91 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Comment |
Applies the same fix as #9 to
ci.yml, which was left with the identical gap.astral-sh/ruff-actionv4.1.0 shipsKNOWN_CHECKSUMSonly up to ruff 0.15.20, and skips manifest checksums entirely unlessmanifest-fileis set:With
version: "0.16.0"and nochecksuminput,validateChecksumfinds no known checksum, leavesisValidasundefined, and verifies nothing — while downloading from the Astral CDN mirror the action prefers by default.Fix
Pass the SHA-256 of
ruff-x86_64-unknown-linux-gnu.tar.gz, the artifact selected forubuntu-latest(x86_64+unknown-linux-gnu). Same runner, action pin, and ruff version as the release workflow, so the value matches the one already inrelease.yml.Provenance
The checksum comes from the published
ruff-x86_64-unknown-linux-gnu.tar.gz.sha256asset on the ruff 0.16.0 release, independently confirmed by downloading the tarball, hashing it, and running the extracted binary to check it reportsruff 0.16.0. It is already proven in CI: thev1.0.0release run passed with this exact value.Note
An explicit checksum is single-platform. If
runs-onever moves off x86_64 linux this fails loudly with a mismatch rather than silently installing something else, but it is a maintenance point when bumping the ruff version — both workflows now need updating together.