feat: add ZIZMOR_CONFIG (#789)

This commit is contained in:
William Woodruff 2025-05-12 16:33:16 -04:00 committed by GitHub
parent de2e68f63c
commit 1e123cfbe5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 2 deletions

View file

@ -502,6 +502,14 @@ the `--config` argument. With `--config`, the file can be named anything:
zizmor --config my-zizmor-config.yml /dir/to/audit
```
!!! tip
Starting with `v1.8.0`, you can use the `ZIZMOR_CONFIG` environment
variable to specify a configuration file.
`ZIZMOR_CONFIG=my-config.yml` is equivalent to
`--config my-config.yml`.
[will discover it]: ./configuration.md#precedence
See [Configuration: `rules.<id>.ignore`](./configuration.md#rulesidignore) for