From 59b3b1c7a5d8ea272787555be03b053dec0f111d Mon Sep 17 00:00:00 2001 From: AidenOchoa Date: Wed, 11 Nov 2026 13:35:48 -0700 Subject: [PATCH] ci: harmonize ruff and zizmor workflow configuration Run zizmor in the ruff workflow, restrict the workflow token to contents: read, and update the stale ruff docs link. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/ruff.yml | 13 ++++++++++++- .github/zizmor.yml | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 338bae8d6470..58c81b943e21 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -1,4 +1,4 @@ -# https://beta.ruff.rs +# https://docs.astral.sh/ruff name: ruff on: push: @@ -7,6 +7,8 @@ on: pull_request: branches: - master +permissions: + contents: read jobs: ruff: runs-on: ubuntu-latest @@ -16,3 +18,12 @@ jobs: persist-credentials: false - uses: astral-sh/setup-uv@v7 - run: uvx ruff check --output-format=github . + zizmor: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + with: + persist-credentials: false + - uses: astral-sh/setup-uv@v7 + # Configuration lives in .github/zizmor.yml + - run: uvx zizmor --offline --format=github . diff --git a/.github/zizmor.yml b/.github/zizmor.yml index 75a55f63776d..a027b4d094af 100644 --- a/.github/zizmor.yml +++ b/.github/zizmor.yml @@ -1,3 +1,4 @@ +# https://docs.zizmor.sh/configuration/ rules: excessive-permissions: disable: true