salus
salus copied to clipboard
add support for do_not_run_from_dirs options
Recently we added a run_from_dirs
option for Gosec to run from subdirs, like
scanner_configs:
Gosec:
run_from_dirs:
- subdir1
- subdir2
- subdir3
But people said they may add a new subdir to the repo, but then forget to update salus.yaml to add the new subdir.
So this PR updates run_from_dirs
from regular paths to global patterns, and adds a do_not_run_from_dirs
option like:
scanner_configs
Gosec:
run_from_dirs:
- "*/"
do_not_run_from_dirs:
- test_dir
Meaning run Gosec from all subdirs, except test_dir
Review Error for geraldnash-cb @ 2022-01-05 19:20:27 UTC User must have write permissions to review