diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 8d7f48f..0d745e5 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -7,6 +7,8 @@ on: # Run builds nightly to catch incompatibilities with new marshmallow releases schedule: - cron: "0 0 * * *" +permissions: + contents: read jobs: tests: name: ${{ matrix.name }} @@ -21,8 +23,10 @@ jobs: - { name: "3.14-apispecdev", tox: py314-apispecdev } steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7 with: + persist-credentials: false + - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7 + with: # zizmor: ignore[cache-poisoning] cache key is lockfile-derived enable-cache: true - run: uv run tox -e ${{ matrix.tox }} build: @@ -30,8 +34,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7 with: + persist-credentials: false + - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7 + with: # zizmor: ignore[cache-poisoning] cache key is lockfile-derived enable-cache: true - run: uv build - run: uvx twine check --strict dist/* @@ -47,8 +53,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7 with: + persist-credentials: false + - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7 + with: # zizmor: ignore[cache-poisoning] cache key is lockfile-derived enable-cache: true - run: uv run tox -e lint publish-to-pypi: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ebab0c..e2baa47 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,10 @@ repos: hooks: - id: check-github-workflows - id: check-readthedocs +- repo: https://github.com/zizmorcore/zizmor-pre-commit + rev: v1.24.0 + hooks: + - id: zizmor - repo: https://github.com/asottile/blacken-docs rev: 1.20.0 hooks: