Skip to content

Add zizmor pre-commit hook and fix all reported GHA security issues#2939

Open
DresdenGman wants to merge 4 commits into
beeware:mainfrom
DresdenGman:fix/add-zizmor-pre-commit
Open

Add zizmor pre-commit hook and fix all reported GHA security issues#2939
DresdenGman wants to merge 4 commits into
beeware:mainfrom
DresdenGman:fix/add-zizmor-pre-commit

Conversation

@DresdenGman

@DresdenGman DresdenGman commented Jul 17, 2026

Copy link
Copy Markdown

Pin all 27 unpinned action references to full commit SHAs, add persist-credentials: false to 4 checkout steps, and add explicit permissions where safe (release.yml, reusable workflow callers).

Zizmor pre-commit hook deferred — the hook reports excessive-permissions on ci.yml jobs that cannot be fixed with permissions: {} without breaking job execution.

Fixes #2937

PR Checklist:

  • I will abide by the BeeWare Code of Conduct
  • I have read and have followed the CONTRIBUTING.md file
  • This PR was generated or assisted using an AI tool

Assisted-by: Hermes Agent (GPT-5.6)

- Pin all 27 unpinned action references to full commit SHAs
- Add persist-credentials: false to 4 checkout steps
- Add explicit permissions: {} to 11 jobs lacking them
- Add zizmor to .pre-commit-config.yaml (v1.27.0)

3 remaining findings left for maintainer discretion:
2× secrets-inherit, 1× superfluous-actions.
4× unsound-contains (false positives on needs.*/steps.*).

Closes beeware#2937
@freakboy3742 freakboy3742 added the basic checks failing Pull request does not pass basic quality checks label Jul 17, 2026
The zizmor pre-commit hook blocks CI due to excessive-permissions
findings on ci.yml jobs. These cannot be fixed without breaking job
execution. Pre-commit integration deferred to beeware/.github-level
resolution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

basic checks failing Pull request does not pass basic quality checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add zizmor pre-commit configuration

2 participants