Skip to content

ci: add zizmor workflow for automated GitHub Actions auditing - #8

Merged
allgorithm merged 2 commits into
mainfrom
security/add-zizmor-audit
Sep 16, 2026
Merged

allgorithm merged 2 commits into
mainfrom
security/add-zizmor-audit

Conversation

@allgorithm

Copy link
Copy Markdown
Owner

Security Hardening: Zizmor Actions Audit

Introduces automated, deterministic security scanning for our GitHub Actions workflows using Zizmor.

What changed and why

  1. Zizmor Audit Workflow (zizmor.yml)
    Added a new GitHub Actions workflow that statically analyzes all our workflows for security vulnerabilities (e.g., untrusted checkouts, malicious code execution via workflow inputs, missing permissions).

    • Runs on push, pull request, and a weekly schedule.
    • Pinned to the full commit SHA for zizmorcore/zizmor-action to maintain supply-chain integrity.
  2. Strict File Permissions & Tag Refinement

    • Added explicit permissions: contents: read to phpstan.yml and run-tests.yml to adhere to the principle of least privilege.
    • Set persist-credentials: false on actions/checkout steps to prevent Git credentials from persisting in the job workspace and potentially being exfiltrated.
    • Updated the comment next to actions/checkout SHAs to reflect the exact target tag (v7.0.1), avoiding confusion while retaining the security of SHA pinning.

Checklist

  • Zizmor workflow created and pinned to SHA
  • Unnecessary checkout credentials disabled (persist-credentials: false)
  • Missing read-only permissions added to existing workflows
  • CHANGELOG.md updated

alexkrivonos added 2 commits September 16, 2026 12:11
- Introduce a new Zizmor audit workflow to statically analyze all GitHub Actions for security vulnerabilities.
- Update checkout action comments to reflect the exact v7.0.1 tag for clarity.
- Document the new workflow in the CHANGELOG.
@allgorithm
allgorithm merged commit 38252a3 into main Sep 16, 2026
9 checks passed
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.

1 participant