Skip to content

Commit 59fbe34

Browse files
committed
Avoid using single value as array
The user config parser in the CLI doesn't yet support it.
1 parent 6ace05b commit 59fbe34

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

tests/multi-language-repo/.github/codeql/codeql-config-query-filters1.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ name: "Check SARIF for default queries with Single include, Single exclude"
33
query-filters:
44
# This should run js/path-injection and js/zipslip
55
- include:
6-
tags contain: external/cwe/cwe-022
6+
tags contain:
7+
- external/cwe/cwe-022
78

89
# Removes js/path-injection
910
- exclude:
10-
id: js/path-injection
11+
id:
12+
- js/path-injection

tests/multi-language-repo/.github/codeql/codeql-config-query-filters2.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ packs:
1010
query-filters:
1111
# This should run js/path-injection and js/zipslip
1212
- include:
13-
tags contain: external/cwe/cwe-022
13+
tags contain:
14+
- external/cwe/cwe-022
1415

1516
# Removes js/path-injection
1617
- exclude:
17-
id: js/path-injection
18+
id:
19+
- js/path-injection
1820

1921
# Query from extra pack
2022
- include:
21-
id: javascript/example/empty-or-one-block
23+
id:
24+
- javascript/example/empty-or-one-block

tests/multi-language-repo/.github/codeql/codeql-config-query-filters3.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,20 @@ packs:
2020
query-filters:
2121
# This should run js/path-injection and js/zipslip
2222
- include:
23-
tags contain: external/cwe/cwe-022
23+
tags contain:
24+
- external/cwe/cwe-022
2425

2526
# Removes js/path-injection
2627
- exclude:
27-
id: js/path-injection
28+
id:
29+
- js/path-injection
2830

2931
# Query from extra pack
3032
- include:
31-
id: javascript/example/empty-or-one-block
33+
id:
34+
- javascript/example/empty-or-one-block
3235

3336
# Local query
3437
- include:
35-
id: inrepo-javascript-querypack/show-ifs
38+
id:
39+
- inrepo-javascript-querypack/show-ifs

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy