Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
timeout-minutes: 15
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -57,6 +58,13 @@ jobs:
env:
MATRIX_NAME: ${{ matrix.name }}

- name: Upload SARIF report into the GitHub repo code scanning
if: contains(matrix.name, 'linting')
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: zizmor.sarif
category: zizmor

- name: Report coverage
if: contains(matrix.name, 'coverage')
uses: codecov/codecov-action@v5
Expand Down
1 change: 1 addition & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ rules:
policies:
actions/*: ref-pin
codecov/codecov-action: ref-pin
github/*: ref-pin
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ _build
*.egg
# autogenerated by setuptools-scm
/pytest_django/_version.py
zizmor.sarif
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ commands =

[testenv:linting]
dependency_groups = linting
allowlist_externals = sh
commands =
ruff check --diff {posargs:pytest_django pytest_django_test tests}
ruff format --quiet --diff {posargs:pytest_django pytest_django_test tests}
mypy {posargs:pytest_django pytest_django_test tests}
zizmor --persona=pedantic .github/workflows/deploy.yml .github/workflows/main.yml
sh -c "zizmor --persona=pedantic --format sarif .github/workflows/deploy.yml .github/workflows/main.yml > zizmor.sarif"

[testenv:doc8]
basepython = python3
Expand Down