Skip to content

Commit 53d523d

Browse files
committed
nox zizmor: allow overriding persona
1 parent 029121c commit 53d523d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

noxfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,11 @@ def zizmor(session: nox.Session) -> None:
145145
"""
146146
Run zizmor, a Github Actions security checker
147147
"""
148+
args: list[str] = list(session.posargs)
149+
if not any(a.startswith("--persona") for a in args):
150+
args.append("--persona=regular")
148151
install(session, req="zizmor")
149-
session.run("zizmor", "--persona=regular", ".github/workflows")
152+
session.run("zizmor", *args, ".github/workflows")
150153

151154

152155
@nox.session

0 commit comments

Comments
 (0)