Skip to content

Update pre-commit repos - #132792

Merged
sobolevn merged 3 commits into
python:mainfrom
sobolevn:update-zizmor
Apr 22, 2025
Merged

Update pre-commit repos#132792
sobolevn merged 3 commits into
python:mainfrom
sobolevn:update-zizmor

Conversation

@sobolevn

Copy link
Copy Markdown
Member

I've updated this in many projects today. Now in CPython as well.

Docs: https://woodruffw.github.io/zizmor/audits/#unpinned-uses-configuration

@hugovk

hugovk commented Apr 22, 2025

Copy link
Copy Markdown
Member

Are there any other hooks we can also update at the same time?

@StanFromIreland

StanFromIreland commented Apr 22, 2025

Copy link
Copy Markdown
Member

@hugovk

@AlexWaygood

Copy link
Copy Markdown
Member

We should consider pinning all our actions to specific hashes for CPython IMO. We've done this for our flagship repos at Astral following https://www.wiz.io/blog/github-action-tj-actions-changed-files-supply-chain-attack-cve-2025-30066 -- the attack there edited existing tags so that they pointed to different commits, meaning that pinning an action to a tag was not sufficient to defend against the attack.

I'm okay with changing the configured zizmor policy for now, though; we can consider pinning to specific hashes as a followup!

@sobolevn

Copy link
Copy Markdown
Member Author

I'm okay with changing the configured zizmor policy for now, though; we can consider pinning to specific hashes as a followup!

Agreed! 👍

@sobolevn sobolevn changed the title Update zizmor to v1.6.0 Update pre-commit repos Apr 22, 2025
Comment thread Tools/jit/_stencils.py
Comment on lines +249 to +251
) as hole if (
_signed(addend) == -4
):

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.

Intentional change?

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.

@sobolevn sobolevn added the needs backport to 3.13 bugs and security fixes label Apr 22, 2025
@sobolevn
sobolevn merged commit 87b1ea0 into python:main Apr 22, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app

Copy link
Copy Markdown

Sorry, @sobolevn, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 87b1ea016b1454b1e83b9113fa9435849b7743aa 3.13

sobolevn added a commit to sobolevn/cpython that referenced this pull request Apr 22, 2025
(cherry picked from commit 87b1ea0)

Co-authored-by: sobolevn <mail@sobolevn.me>
@bedevere-app

bedevere-app Bot commented Apr 22, 2025

Copy link
Copy Markdown

GH-132804 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Apr 22, 2025
sobolevn added a commit that referenced this pull request Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants