11import * as core from "@actions/core"
22import * as github from "@actions/github"
3- import { exec , ExecOptions } from "child_process"
3+ import { exec , ExecOptionsWithStringEncoding } from "child_process"
44import * as fs from "fs"
55import * as path from "path"
66import { promisify } from "util"
@@ -116,7 +116,7 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
116116 }
117117 }
118118
119- const cmdArgs : ExecOptions = { }
119+ const cmdArgs : ExecOptionsWithStringEncoding = { }
120120
121121 const workingDirectory = core . getInput ( `working-directory` )
122122 if ( workingDirectory ) {
@@ -156,7 +156,7 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
156156 core . info ( `Ran golangci-lint in ${ Date . now ( ) - startedAt } ms` )
157157}
158158
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 > {
160160 const verify = core . getBooleanInput ( `verify` , { required : true } )
161161 if ( ! verify ) {
162162 return
@@ -178,7 +178,7 @@ async function runVerify(binPath: string, userArgsMap: Map<string, string>, cmdA
178178 printOutput ( res )
179179}
180180
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 > {
182182 let cmdConfigPath = `${ binPath } config path`
183183 if ( userArgsMap . get ( "config" ) ) {
184184 cmdConfigPath += ` --config=${ userArgsMap . get ( "config" ) } `
0 commit comments