Avoid using single value as array
The user config parser in the CLI doesn't yet support it.
This commit is contained in:
parent
6ace05baa3
commit
59fbe34861
3 changed files with 18 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue