Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Lint GitHub Actions for common security issues using zizmor.
# Docs: https://woodruffw.github.io/zizmor

name: zizmor

# Only run on PRs and the main branch.
# Pushes to branches will only trigger a run when a PR is opened.
on:
pull_request:
push:
branches:
- main

permissions: {}

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.13"

- name: Install Zizmor
run: python -m pip install zizmor

- name: List installed packages
run: python -m pip freeze

- name: Lint GitHub Actions with Zizmor
run: zizmor .github/workflows
env:
# Set GH_TOKEN to allow zizmor to check online vulnerabilities
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}