Skip to content

Commit b1c90f9

Browse files
committed
Adds zizmor serif
1 parent 6c0e6b2 commit b1c90f9

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,15 @@ jobs:
5454
5555
- name: Run tox
5656
run: tox -e "${MATRIX_NAME}"
57-
env:
58-
MATRIX_NAME: ${{ matrix.name }}
57+
# run: tox -e "${MATRIX_NAME}"
58+
# env:
59+
# MATRIX_NAME: ${{ matrix.name }}
60+
61+
- name: Upload SARIF report into the GitHub repo code scanning
62+
uses: github/codeql-action/upload-sarif@v3
63+
with:
64+
sarif_file: zizmor.sarif
65+
category: zizmor
5966

6067
- name: Report coverage
6168
if: contains(matrix.name, 'coverage')

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ _build
1818
*.egg
1919
# autogenerated by setuptools-scm
2020
/pytest_django/_version.py
21+
zizmor.sarif

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ commands =
4444

4545
[testenv:linting]
4646
dependency_groups = linting
47+
allowlist_externals = sh
4748
commands =
4849
ruff check --diff {posargs:pytest_django pytest_django_test tests}
4950
ruff format --quiet --diff {posargs:pytest_django pytest_django_test tests}
5051
mypy {posargs:pytest_django pytest_django_test tests}
51-
zizmor --persona=pedantic .github/workflows/deploy.yml .github/workflows/main.yml
52+
sh -c "zizmor --persona=pedantic --format sarif .github/workflows/deploy.yml .github/workflows/main.yml > zizmor.sarif"
5253

5354
[testenv:doc8]
5455
basepython = python3

0 commit comments

Comments
 (0)