File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -28610,6 +28610,7 @@ async function newCodeQL() {
28610
28610
suite: `codeql-suites/${core.getInput("suite") || "actions-code-scanning"}.qls`,
28611
28611
source_root: core.getInput("source-root"),
28612
28612
output: core.getInput("sarif"),
28613
+ packs: core.getInput("packs").length > 0 ? core.getInput("packs") : undefined,
28613
28614
};
28614
28615
}
28615
28616
exports.newCodeQL = newCodeQL;
@@ -28706,9 +28707,8 @@ async function codeqlDatabaseAnalyze(codeql, database_path) {
28706
28707
"--output",
28707
28708
codeql_output,
28708
28709
];
28709
- const useWorkflowModels = process.env["USE_WORKFLOW_MODELS"];
28710
- if (useWorkflowModels !== undefined && useWorkflowModels == "true") {
28711
- cmd.push("--extension-packs", "local/workflow-models");
28710
+ if (codeql.packs !== undefined) {
28711
+ cmd.push("--extension-packs", codeql.packs);
28712
28712
}
28713
28713
// remote pack or local pack
28714
28714
if (codeql.pack.startsWith("githubsecuritylab/")) {
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ export interface CodeQLConfig {
18
18
source_root ?: string ;
19
19
// The output file for the SARIF file.
20
20
output ?: string ;
21
+ // Extension CodeQL packs to use for analysis.
22
+ packs : string | undefined ;
21
23
}
22
24
23
25
export async function newCodeQL ( ) : Promise < CodeQLConfig > {
@@ -28,6 +30,8 @@ export async function newCodeQL(): Promise<CodeQLConfig> {
28
30
suite : `codeql-suites/${ core . getInput ( "suite" ) || "actions-code-scanning" } .qls` ,
29
31
source_root : core . getInput ( "source-root" ) ,
30
32
output : core . getInput ( "sarif" ) ,
33
+ packs :
34
+ core . getInput ( "packs" ) . length > 0 ? core . getInput ( "packs" ) : undefined ,
31
35
} ;
32
36
}
33
37
@@ -147,9 +151,8 @@ export async function codeqlDatabaseAnalyze(
147
151
codeql_output ,
148
152
] ;
149
153
150
- const useWorkflowModels = process . env [ "USE_WORKFLOW_MODELS" ] ;
151
- if ( useWorkflowModels !== undefined && useWorkflowModels == "true" ) {
152
- cmd . push ( "--extension-packs" , "local/workflow-models" ) ;
154
+ if ( codeql . packs !== undefined ) {
155
+ cmd . push ( "--extension-packs" , codeql . packs ) ;
153
156
}
154
157
155
158
// remote pack or local pack
You can’t perform that action at this time.
0 commit comments