Skip to content

Commit 377c6b4

Browse files
authored
Merge pull request #12557 from felickz/patch-1
add security-severity score to code scanning query list
2 parents 7d9f78b + f77f91e commit 377c6b4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

misc/scripts/generate-code-scanning-query-list.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
"""
1010
This script collects CodeQL queries that are part of code scanning query packs
11-
and prints CSV data to stdout that describes which packs contain which queries.
11+
and prints CSV data to stdout that describes which suites in the pack contain which queries.
1212
1313
Errors are printed to stderr. This script requires that 'git' and 'codeql' commands
1414
are on the PATH. It'll try to automatically set the CodeQL search path correctly,
@@ -159,7 +159,7 @@ def subprocess_run(cmd):
159159
csvwriter = csv.writer(sys.stdout)
160160
csvwriter.writerow([
161161
"Query filename", "Suite", "Query name", "Query ID",
162-
"Kind", "Severity", "Precision", "Tags"
162+
"Kind", "Severity", "Precision", "Tags", "Security score"
163163
])
164164

165165
# Iterate over all languages and packs, and resolve which queries are part of those packs
@@ -198,5 +198,6 @@ def subprocess_run(cmd):
198198
get_query_metadata('kind', meta, queryfile_nwo),
199199
get_query_metadata('problem.severity', meta, queryfile_nwo),
200200
get_query_metadata('precision', meta, queryfile_nwo),
201-
get_query_metadata('tags', meta, queryfile_nwo)
201+
get_query_metadata('tags', meta, queryfile_nwo),
202+
get_query_metadata('security-severity', meta, queryfile_nwo),
202203
])

0 commit comments

Comments
 (0)