Skip to content

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Dec 11, 2024

zizmor is a static analysis tool for GitHub Actions. It can find many common security issues in typical GitHub Actions CI/CD setups.

https://woodruffw.github.io/zizmor/

Seth also recommends avoiding using shared caches in the build and release process:

https://blog.pypi.org/posts/2024-12-11-ultralytics-attack-analysis/

Reviewing the workflows here, we use caches in https://github.com/python/release-tools/blob/master/.github/workflows/test.yml to run unit tests and https://github.com/python/release-tools/blob/master/.github/workflows/lint.yml to lint the code with pre-commit, but importantly don't use any in https://github.com/python/release-tools/blob/master/.github/workflows/source-and-docs-release.yml that creates release artifacts.

I also updated the other pre-commit hooks including new typing and f-string upgrades.

@hugovk hugovk requested a review from sethmlarson December 11, 2024 16:10
Copy link
Collaborator

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

LGTM

@sethmlarson sethmlarson merged commit c2cc96c into python:master Dec 11, 2024
10 checks passed
@hugovk hugovk deleted the zizmor branch December 11, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants