@@ -7,7 +7,7 @@ import * as github from "@actions/github";
7
7
import * as toolrunner from "@actions/exec/lib/toolrunner" ;
8
8
9
9
export 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
11
11
12
12
export interface CodeQLConfig {
13
13
// The path to the codeql bundle.
@@ -48,7 +48,7 @@ export async function newCodeQL(): Promise<CodeQLConfig> {
48
48
49
49
export async function runCommand (
50
50
config : CodeQLConfig ,
51
- args : string [ ]
51
+ args : string [ ] ,
52
52
) : Promise < any > {
53
53
var bin = path . join ( config . path , "codeql" ) ;
54
54
let output = "" ;
@@ -68,7 +68,7 @@ export async function runCommand(
68
68
69
69
export async function runCommandJson (
70
70
config : CodeQLConfig ,
71
- args : string [ ]
71
+ args : string [ ] ,
72
72
) : Promise < object > {
73
73
return JSON . parse ( await runCommand ( config , args ) ) ;
74
74
}
@@ -130,12 +130,12 @@ export async function downloadExtractor(config: CodeQLConfig): Promise<string> {
130
130
}
131
131
// we assume there is only one tar.gz asset
132
132
const assets = release . data . assets . filter ( ( asset ) =>
133
- asset . browser_download_url . endsWith ( ".tar.gz" )
133
+ asset . browser_download_url . endsWith ( ".tar.gz" ) ,
134
134
) ;
135
135
136
136
if ( assets . length !== 1 ) {
137
137
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.` ,
139
139
) ;
140
140
}
141
141
var asset = assets [ 0 ] ;
@@ -148,7 +148,7 @@ export async function downloadExtractor(config: CodeQLConfig): Promise<string> {
148
148
`token ${ core . getInput ( "token" ) } ` ,
149
149
{
150
150
accept : "application/octet-stream" ,
151
- }
151
+ } ,
152
152
) ;
153
153
core . debug ( `Extractor downloaded to ${ extractorPath } ` ) ;
154
154
@@ -170,7 +170,7 @@ export async function downloadPack(codeql: CodeQLConfig): Promise<boolean> {
170
170
}
171
171
172
172
export async function codeqlDatabaseCreate (
173
- codeql : CodeQLConfig
173
+ codeql : CodeQLConfig ,
174
174
) : Promise < string > {
175
175
// get runner temp directory for database
176
176
var temp = process . env [ "RUNNER_TEMP" ] ;
@@ -196,7 +196,7 @@ export async function codeqlDatabaseCreate(
196
196
197
197
export async function codeqlDatabaseAnalyze (
198
198
codeql : CodeQLConfig ,
199
- database_path : string
199
+ database_path : string ,
200
200
) : Promise < string > {
201
201
var codeql_output = codeql . output || "codeql-iac.sarif" ;
202
202
0 commit comments