Skip to content
Merged
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
50 changes: 50 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright 2026 DHC Tech
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file.
#
# Zizmor: Static analysis and security auditing engine specifically designed
# for GitHub Actions workflows. Reports findings directly into GitHub
# Security & Quality Code Scanning tab via SARIF.

name: GitHub Actions Security (Zizmor)

on:
push:
branches: [ main ]
paths:
- '.github/workflows/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/**'
schedule:
- cron: '0 0 * * 0' # Weekly Sunday scan

permissions:
contents: read

jobs:
zizmor:
name: zizmor
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Check out repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
persist-credentials: false

- name: Run zizmor security audit
run: |
pipx run zizmor --format sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload SARIF report to Code Scanning
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
if: ${{ always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) }}
with:
sarif_file: results.sarif
category: zizmor
Loading