|
8 | 8 |
|
9 | 9 | """ |
10 | 10 | 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. |
12 | 12 |
|
13 | 13 | Errors are printed to stderr. This script requires that 'git' and 'codeql' commands |
14 | 14 | are on the PATH. It'll try to automatically set the CodeQL search path correctly, |
@@ -159,7 +159,7 @@ def subprocess_run(cmd): |
159 | 159 | csvwriter = csv.writer(sys.stdout) |
160 | 160 | csvwriter.writerow([ |
161 | 161 | "Query filename", "Suite", "Query name", "Query ID", |
162 | | - "Kind", "Severity", "Precision", "Tags" |
| 162 | + "Kind", "Severity", "Precision", "Tags", "Security score" |
163 | 163 | ]) |
164 | 164 |
|
165 | 165 | # Iterate over all languages and packs, and resolve which queries are part of those packs |
@@ -198,5 +198,6 @@ def subprocess_run(cmd): |
198 | 198 | get_query_metadata('kind', meta, queryfile_nwo), |
199 | 199 | get_query_metadata('problem.severity', meta, queryfile_nwo), |
200 | 200 | 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), |
202 | 203 | ]) |
0 commit comments