Skip to content

Commit c920ae8

Browse files
committed
ci: run zizmor in CI and noxfile
- Adds lockfile - Adds nox session - Adds nox session to CI matrix
1 parent 7830f43 commit c920ae8

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/reusable-nox.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
- session: "pip-compile"
3535
extra-args: "--check"
3636
python-versions: "3.12"
37+
- session: "zizmor"
38+
python-versions: "3.12"
3739
name: "Run nox ${{ matrix.session }} session"
3840
steps:
3941
- name: Check out repo

noxfile.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ def actionlint(session: nox.Session) -> None:
140140
)
141141

142142

143+
@nox.session
144+
def zizmor(session: nox.Session) -> None:
145+
"""
146+
Ren zizmor, a Github Actions security checker
147+
"""
148+
install(session, req="zizmor")
149+
session.run("zizmor", "--persona=regular", ".github/workflows")
150+
151+
143152
@nox.session
144153
def lint(session: nox.Session):
145154
session.notify("typing")

tests/zizmor.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
zizmor

tests/zizmor.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile --universal --output-file tests/zizmor.txt tests/zizmor.in
3+
zizmor==1.16.0
4+
# via -r tests/zizmor.in

0 commit comments

Comments
 (0)