salus icon indicating copy to clipboard operation
salus copied to clipboard

add support for do_not_run_from_dirs options

Open ghbren opened this issue 3 years ago • 1 comments

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

ghbren avatar Jul 02 '21 09:07 ghbren

Review Error for geraldnash-cb @ 2022-01-05 19:20:27 UTC User must have write permissions to review

cb-heimdall avatar Jan 05 '22 19:01 cb-heimdall