@@ -7,7 +7,7 @@ import * as github from "@actions/github";
77import * as toolrunner from "@actions/exec/lib/toolrunner" ;
88
99export const EXTRACTOR_REPOSITORY = "advanced-security/codeql-extractor-iac" ;
10- export const EXTRACTOR_VERSION = "v0.0.4 " ; // stable version
10+ export const EXTRACTOR_VERSION = "v0.4.0 " ; // stable version
1111
1212export interface CodeQLConfig {
1313 // The path to the codeql bundle.
@@ -48,7 +48,7 @@ export async function newCodeQL(): Promise<CodeQLConfig> {
4848
4949export async function runCommand (
5050 config : CodeQLConfig ,
51- args : string [ ]
51+ args : string [ ] ,
5252) : Promise < any > {
5353 var bin = path . join ( config . path , "codeql" ) ;
5454 let output = "" ;
@@ -68,7 +68,7 @@ export async function runCommand(
6868
6969export async function runCommandJson (
7070 config : CodeQLConfig ,
71- args : string [ ]
71+ args : string [ ] ,
7272) : Promise < object > {
7373 return JSON . parse ( await runCommand ( config , args ) ) ;
7474}
@@ -130,12 +130,12 @@ export async function downloadExtractor(config: CodeQLConfig): Promise<string> {
130130 }
131131 // we assume there is only one tar.gz asset
132132 const assets = release . data . assets . filter ( ( asset ) =>
133- asset . browser_download_url . endsWith ( ".tar.gz" )
133+ asset . browser_download_url . endsWith ( ".tar.gz" ) ,
134134 ) ;
135135
136136 if ( assets . length !== 1 ) {
137137 throw new Error (
138- `Expected 1 asset to be found, but found ${ assets . length } instead.`
138+ `Expected 1 asset to be found, but found ${ assets . length } instead.` ,
139139 ) ;
140140 }
141141 var asset = assets [ 0 ] ;
@@ -148,7 +148,7 @@ export async function downloadExtractor(config: CodeQLConfig): Promise<string> {
148148 `token ${ core . getInput ( "token" ) } ` ,
149149 {
150150 accept : "application/octet-stream" ,
151- }
151+ } ,
152152 ) ;
153153 core . debug ( `Extractor downloaded to ${ extractorPath } ` ) ;
154154
@@ -170,7 +170,7 @@ export async function downloadPack(codeql: CodeQLConfig): Promise<boolean> {
170170}
171171
172172export async function codeqlDatabaseCreate (
173- codeql : CodeQLConfig
173+ codeql : CodeQLConfig ,
174174) : Promise < string > {
175175 // get runner temp directory for database
176176 var temp = process . env [ "RUNNER_TEMP" ] ;
@@ -196,7 +196,7 @@ export async function codeqlDatabaseCreate(
196196
197197export async function codeqlDatabaseAnalyze (
198198 codeql : CodeQLConfig ,
199- database_path : string
199+ database_path : string ,
200200) : Promise < string > {
201201 var codeql_output = codeql . output || "codeql-iac.sarif" ;
202202
0 commit comments