How to use with docker? #2058
|
I use lefthook for pre-commit checks. In it I have: pre-commit:
jobs:
- name: zizmor
glob: '.github/workflows/*.{yaml,yml}'
run: |
docker run --rm -v "${PWD}:/repo" -w /repo \
ghcr.io/zizmorcore/zizmor:latest \
{staged_files}The docker container runs but it cannot find My guess is the volume paths are incorrect, but I cannot find anything in the docs that specifies what is correct. |
Answered by
woodruffw
Aug 1, 2026
Replies: 1 comment 3 replies
|
Someone else in the community may be able to help with your specific case, but in general I recommend using our official hook: https://github.com/zizmorcore/zizmor-pre-commit |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The specific volume paths are intentionally not documented, since they're not intended to be stable (the Docker image exists solely for consumption through zizmor-action). But if you want to use it knowing that there's no official stability policy, you can see an example here:
https://github.com/zizmorcore/zizmor-action/blob/dc57e305f08a25141d9b9f7c4ce7e4d72208d732/action.sh#L103-L112