Description
We run zizmor in Ruff's CI (via pre-commit), which is a linter that checks GitHub workflow files for security issues:
- pre-commit config: https://github.com/astral-sh/ruff/blob/33a56f198b3653312f9adb4bc8be41aedce52fbc/.pre-commit-config.yaml#L92-L97
- zizmor config: https://github.com/astral-sh/ruff/blob/main/.github/zizmor.yml
- Zizmor docs: https://woodruffw.github.io/zizmor/
But the workflow file generated by dist
doesn't pass zizmor, meaning we have to exclude it from the check (currently it's excluded from all pre-commit lints: https://github.com/astral-sh/ruff/blob/33a56f198b3653312f9adb4bc8be41aedce52fbc/.pre-commit-config.yaml#L3-L5). That feels sort-of ironic, since potential security issues are arguably more important in the release workflow than in any other workflow. It would be great if the workflow files generated by dist
could be guaranteed to be zizmor-compliant out of the box, so that we didn't have to exclude them from the check in Ruff's CI
This isn't particularly high-priority, though -- more of a nice-to-have!