aquasecurity / fanal

Static Analysis Library for Containers
Apache License 2.0
199 stars 100 forks source link

feat(secret): add enable-builtin-rules #488

Closed knqyf263 closed 2 years ago

knqyf263 commented 2 years ago

Description

enable-buitlin-rules enables only specified built-in rules.

The following example enables github-pat and disables all other rules. It is useful for those who are interested in GitHub PAT only. It also brings better performance.

enable-builin-rules:
  - github-pat

disable is stronger. github-pat will be disabled in the following case although it doesn't make sense. They are not specified together in most cases.

enable-builtin-rules:
  - github-pat
disable-rules:
  - github-pat