From 2ba7e8a8a79f9be74d9652a55000cf3c0f3130b2 Mon Sep 17 00:00:00 2001 From: Tobias Raabe <22533006+tobiasraabe@users.noreply.github.com> Date: Sun, 11 Oct 2026 09:56:41 +0200 Subject: [PATCH 1/2] Pilot shared zizmor and monthly maintenance updates --- .github/dependabot.yml | 8 ++------ .github/workflows/zizmor.yml | 28 +--------------------------- .pre-commit-config.yaml | 1 + 3 files changed, 4 insertions(+), 33 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f0b9eaf..ad141ad 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,16 +4,12 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "weekly" + interval: "monthly" cooldown: default-days: 7 - groups: - github-actions: - patterns: - - "*" - package-ecosystem: "uv" directory: "/" schedule: - interval: "weekly" + interval: "monthly" cooldown: default-days: 7 diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index f394ba6..4103c32 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -16,33 +16,7 @@ permissions: {} jobs: zizmor: name: Scan GitHub Actions - runs-on: ubuntu-latest permissions: contents: read security-events: write - - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - - uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0 - with: - enable-cache: true - python-version: '3.13' - - - name: Run zizmor - run: uvx --from zizmor zizmor --format=github . - - - name: Generate SARIF report - if: always() - run: uvx --from zizmor zizmor --format=sarif --no-exit-codes . > zizmor.sarif - - - name: Upload SARIF report - if: > - always() && - (github.event_name != 'pull_request' || - github.event.pull_request.head.repo.full_name == github.repository) - uses: github/codeql-action/upload-sarif@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4 - with: - sarif_file: zizmor.sarif + uses: pytask-dev/.github/.github/workflows/zizmor.yml@0089f8e41eda395995506b9fddb1843eda412048 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08f4b34..22f0865 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,5 @@ ci: + autoupdate_schedule: monthly skip: [uv-lock] repos: From 6700806980adc399f2bbfc3582a5b083592cb461 Mon Sep 17 00:00:00 2001 From: Tobias Raabe <22533006+tobiasraabe@users.noreply.github.com> Date: Sun, 11 Oct 2026 10:04:09 +0200 Subject: [PATCH 2/2] Keep zizmor scanning local --- .github/workflows/zizmor.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 4103c32..f394ba6 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -16,7 +16,33 @@ permissions: {} jobs: zizmor: name: Scan GitHub Actions + runs-on: ubuntu-latest permissions: contents: read security-events: write - uses: pytask-dev/.github/.github/workflows/zizmor.yml@0089f8e41eda395995506b9fddb1843eda412048 + + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0 + with: + enable-cache: true + python-version: '3.13' + + - name: Run zizmor + run: uvx --from zizmor zizmor --format=github . + + - name: Generate SARIF report + if: always() + run: uvx --from zizmor zizmor --format=sarif --no-exit-codes . > zizmor.sarif + + - name: Upload SARIF report + if: > + always() && + (github.event_name != 'pull_request' || + github.event.pull_request.head.repo.full_name == github.repository) + uses: github/codeql-action/upload-sarif@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4 + with: + sarif_file: zizmor.sarif