File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1- const SARIF_RESULTS_QUERY_KINDS = [
1+ export const SARIF_RESULTS_QUERY_KINDS = [
22 "problem" ,
33 "alert" ,
44 "path-problem" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import type { CodeQLCliServer } from "../codeql-cli/cli";
88import type { QlPackDetails } from "./ql-pack-details" ;
99import { getQlPackFilePath } from "../common/ql" ;
1010import type { SuiteInstruction } from "../packaging/suite-instruction" ;
11+ import { SARIF_RESULTS_QUERY_KINDS } from "../common/query-metadata" ;
1112
1213export async function resolveCodeScanningQueryPack (
1314 logger : BaseLogger ,
@@ -34,10 +35,15 @@ export async function resolveCodeScanningQueryPack(
3435 import : `codeql-suites/${ language } -code-scanning.qls` ,
3536 from : `${ downloadedPack . name } @${ downloadedPack . version } ` ,
3637 } ,
37- // Exclude any non-problem queries
3838 {
39- exclude : {
40- kind : [ "diagnostic" , "metric" ] ,
39+ // This is necessary to ensure that the next import filter
40+ // is applied correctly
41+ exclude : { } ,
42+ } ,
43+ {
44+ // Only include problem queries
45+ include : {
46+ kind : SARIF_RESULTS_QUERY_KINDS ,
4147 } ,
4248 } ,
4349 ] ;
You can’t perform that action at this time.
0 commit comments