Skip to content

Commit 318b0ab

Browse files
Add zizmor for GitHub Actions security linting (#2816)
1 parent f844238 commit 318b0ab

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ ci:
3838
- vulture
3939
- vulture-docs
4040
- yamlfix
41+
- zizmor
4142
- pyrefly
4243
- pyrefly-docs
4344

@@ -384,6 +385,15 @@ repos:
384385
additional_dependencies: [uv==0.9.5]
385386
stages: [pre-commit]
386387

388+
- id: zizmor
389+
name: zizmor
390+
entry: uv run --extra=dev zizmor .github
391+
language: python
392+
pass_filenames: false
393+
types_or: [yaml]
394+
additional_dependencies: [uv==0.9.5]
395+
stages: [pre-commit]
396+
387397
- id: sphinx-lint
388398
name: sphinx-lint
389399
entry: uv run --extra=dev sphinx-lint --enable=all --disable=line-too-long

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ optional-dependencies.dev = [
106106
"vws-test-fixtures==2023.3.5",
107107
"vws-web-tools==2024.10.6.1",
108108
"yamlfix==1.19.1",
109+
"zizmor==1.19.0",
109110
]
110111
optional-dependencies.release = [ "check-wheel-contents==0.6.3" ]
111112
urls.Documentation = "https://vws-python.github.io/vws-python-mock/"

0 commit comments

Comments
 (0)