Skip to content

Commit 56a82f8

Browse files
authored
1 parent f5552f1 commit 56a82f8

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
# Run builds nightly to catch incompatibilities with new marshmallow releases
88
schedule:
99
- cron: "0 0 * * *"
10+
permissions:
11+
contents: read
1012
jobs:
1113
tests:
1214
name: ${{ matrix.name }}
@@ -21,17 +23,21 @@ jobs:
2123
- { name: "3.14-apispecdev", tox: py314-apispecdev }
2224
steps:
2325
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
24-
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
2526
with:
27+
persist-credentials: false
28+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
29+
with: # zizmor: ignore[cache-poisoning] cache key is lockfile-derived
2630
enable-cache: true
2731
- run: uv run tox -e ${{ matrix.tox }}
2832
build:
2933
name: Build package
3034
runs-on: ubuntu-latest
3135
steps:
3236
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
33-
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
3437
with:
38+
persist-credentials: false
39+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
40+
with: # zizmor: ignore[cache-poisoning] cache key is lockfile-derived
3541
enable-cache: true
3642
- run: uv build
3743
- run: uvx twine check --strict dist/*
@@ -47,8 +53,10 @@ jobs:
4753
runs-on: ubuntu-latest
4854
steps:
4955
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
50-
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
5156
with:
57+
persist-credentials: false
58+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
59+
with: # zizmor: ignore[cache-poisoning] cache key is lockfile-derived
5260
enable-cache: true
5361
- run: uv run tox -e lint
5462
publish-to-pypi:

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ repos:
1111
hooks:
1212
- id: check-github-workflows
1313
- id: check-readthedocs
14+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
15+
rev: v1.24.0
16+
hooks:
17+
- id: zizmor
1418
- repo: https://github.com/asottile/blacken-docs
1519
rev: 1.20.0
1620
hooks:

0 commit comments

Comments
 (0)