Skip to content

Commit

Permalink
snyk: define all findings with level error as important
Browse files Browse the repository at this point in the history
  • Loading branch information
kdudka committed Sep 22, 2023
1 parent 40b402c commit ad88831
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit ad88831

Please sign in to comment.