From bbff1575cd37e96751d7bfa8148db6d3925daf25 Mon Sep 17 00:00:00 2001 From: Vecko <36369090+VeckoTheGecko@users.noreply.github.com> Date: Fri, 10 Apr 2026 10:44:44 +0200 Subject: [PATCH] MAINT: Add Zizmor as GHA --- .github/workflows/ci.yml | 14 ++++++++++++++ .pre-commit-config.yaml | 1 + 2 files changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 62edf3e8f..22085a485 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -243,3 +243,17 @@ jobs: done env: PREFIX_API_KEY: ${{ secrets.PREFIX_API_KEY }} # zizmor: ignore[secrets-outside-env] + + zizmor: + name: GHA Security Analysis using Zizmor + runs-on: ubuntu-latest + permissions: + security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files. + steps: + - name: Checkout repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Run zizmor + uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 89e2128d4..0be877757 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,7 @@ repos: rev: v1.23.1 hooks: - id: zizmor + args: ["--offline"] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.9 hooks: