hawkeyesec / scanner-cli

A project security/vulnerability/risk scanning tool
Other
358 stars 89 forks source link

[Suggestion] Add module configuration extendability #126

Open bekh6ex opened 5 years ago

bekh6ex commented 5 years ago

A possible way to add configuration to individual modules

To try out documentation

./bin/hawkeye modules config files-secrets

bekh6ex commented 5 years ago

Currently, when executing ./bin/hawkeye modules config files-secrets I get this output:

[info] Version: v1.6.1
files-secrets module configuration properties:

    files (string[]): List of files containing patterns of suspicious filenames

.hawkeyerc examples:
{
  "moduleConfig": {
    "files-secrets": {
      "files": [
        "path/to/patterns.json"
      ]
    }
  }
}
bekh6ex commented 5 years ago

@felixhammerl Any comments on this?