1
1
import * as core from "@actions/core"
2
2
import * as github from "@actions/github"
3
- import { exec , ExecOptions } from "child_process"
3
+ import { exec , ExecOptionsWithStringEncoding } from "child_process"
4
4
import * as fs from "fs"
5
5
import * as path from "path"
6
6
import { promisify } from "util"
@@ -116,7 +116,7 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
116
116
}
117
117
}
118
118
119
- const cmdArgs : ExecOptions = { }
119
+ const cmdArgs : ExecOptionsWithStringEncoding = { }
120
120
121
121
const workingDirectory = core . getInput ( `working-directory` )
122
122
if ( workingDirectory ) {
@@ -156,7 +156,7 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
156
156
core . info ( `Ran golangci-lint in ${ Date . now ( ) - startedAt } ms` )
157
157
}
158
158
159
- async function runVerify ( binPath : string , userArgsMap : Map < string , string > , cmdArgs : ExecOptions ) : Promise < void > {
159
+ async function runVerify ( binPath : string , userArgsMap : Map < string , string > , cmdArgs : ExecOptionsWithStringEncoding ) : Promise < void > {
160
160
const verify = core . getBooleanInput ( `verify` , { required : true } )
161
161
if ( ! verify ) {
162
162
return
@@ -178,7 +178,7 @@ async function runVerify(binPath: string, userArgsMap: Map<string, string>, cmdA
178
178
printOutput ( res )
179
179
}
180
180
181
- async function getConfigPath ( binPath : string , userArgsMap : Map < string , string > , cmdArgs : ExecOptions ) : Promise < string > {
181
+ async function getConfigPath ( binPath : string , userArgsMap : Map < string , string > , cmdArgs : ExecOptionsWithStringEncoding ) : Promise < string > {
182
182
let cmdConfigPath = `${ binPath } config path`
183
183
if ( userArgsMap . get ( "config" ) ) {
184
184
cmdConfigPath += ` --config=${ userArgsMap . get ( "config" ) } `
0 commit comments