Skip to content

Use JSON for known checksums - #415

Merged
eifinger merged 1 commit into
astral-sh:mainfrom
eifinger-bot:security/use-json-for-known-checksums
Aug 28, 2026
Merged

eifinger merged 1 commit into
astral-sh:mainfrom
eifinger-bot:security/use-json-for-known-checksums

Conversation

@eifinger-bot

Copy link
Copy Markdown
Contributor

Ports the hardening from astral-sh/setup-uv#1025 to ruff-action.\n\nThis stores generated checksums as JSON data behind a small typed TypeScript wrapper, preventing values sourced from release metadata from being mixed into generated executable code. It also updates the checksum workflow and packaged action artifacts, and adds a regression test for code-like keys and escaped checksum values.\n\nTests: npm run build, npm run check, npm test, npm run package

@eifinger-bot
eifinger-bot requested a review from a team August 28, 2026 07:59
@eifinger-bot
eifinger-bot requested a review from eifinger as a code owner August 28, 2026 07:59
@eifinger-bot
eifinger-bot force-pushed the security/use-json-for-known-checksums branch from 1ff8578 to e8f134f Compare August 28, 2026 08:01
@eifinger eifinger added the bugfix A change that fixes a bug. Leads to a minor version bump. label Aug 28, 2026
@eifinger
eifinger enabled auto-merge (squash) August 28, 2026 08:26
@@ -0,0 +1,33 @@
import { promises as fs } from "node:fs";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test isn't being discovered by Jest. We shuold move it under __tests__?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Thanks for spotting that. My Agent was working off an outdated clone

auto-merge was automatically disabled August 28, 2026 12:22

Head branch was pushed to by a user without write access

@eifinger-bot
eifinger-bot force-pushed the security/use-json-for-known-checksums branch from e8f134f to 2327e2a Compare August 28, 2026 12:22
@eifinger
eifinger enabled auto-merge (squash) August 28, 2026 12:24
@eifinger
eifinger merged commit 127e6a1 into astral-sh:main Aug 28, 2026
72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix A change that fixes a bug. Leads to a minor version bump.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants