Avoid using single value as array

The user config parser in the CLI doesn't yet support it.
This commit is contained in:
Andrew Eisenberg 2022-10-02 14:16:12 -07:00
parent 6ace05baa3
commit 59fbe34861
3 changed files with 18 additions and 9 deletions

View file

@ -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

View file

@ -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

View file

@ -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