Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions py/plugins/snyk.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ def handle_args(self, parser, args, props):
if not os.access(self.auth_token_src, os.R_OK):
parser.error("unable to read snyk authentication token: %s" % self.auth_token_src)

# define all Snyk's findings with level `error` as important
props.imp_checker_set.add("SNYK_CODE_WARNING")
props.imp_csgrep_filters.append(("SNYK_CODE_WARNING", "--event=^error"))

# fetch snyk using the given URL
def fetch_snyk_hook(results, props):
cache_dir = args.snyk_cache_dir
Expand Down