Skip to content

Commit

Permalink
Avoid using single value as array
Browse files Browse the repository at this point in the history
The user config parser in the CLI doesn't yet support it.
  • Loading branch information
Andrew Eisenberg committed Oct 3, 2022
1 parent 6ace05b commit 59fbe34
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: "Check SARIF for default queries with Single include, Single exclude"
query-filters:
# This should run js/path-injection and js/zipslip
- include:
tags contain: external/cwe/cwe-022
tags contain:
- external/cwe/cwe-022

# Removes js/path-injection
- exclude:
id: js/path-injection
id:
- js/path-injection
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ packs:
query-filters:
# This should run js/path-injection and js/zipslip
- include:
tags contain: external/cwe/cwe-022
tags contain:
- external/cwe/cwe-022

# Removes js/path-injection
- exclude:
id: js/path-injection
id:
- js/path-injection

# Query from extra pack
- include:
id: javascript/example/empty-or-one-block
id:
- javascript/example/empty-or-one-block
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@ packs:
query-filters:
# This should run js/path-injection and js/zipslip
- include:
tags contain: external/cwe/cwe-022
tags contain:
- external/cwe/cwe-022

# Removes js/path-injection
- exclude:
id: js/path-injection
id:
- js/path-injection

# Query from extra pack
- include:
id: javascript/example/empty-or-one-block
id:
- javascript/example/empty-or-one-block

# Local query
- include:
id: inrepo-javascript-querypack/show-ifs
id:
- inrepo-javascript-querypack/show-ifs

0 comments on commit 59fbe34

Please sign in to comment.