mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-17 02:06:43 +00:00
Fix is alpine check using shlex (#130)
This commit is contained in:
@@ -14,7 +14,8 @@ import {
|
||||
PodPhase,
|
||||
mergePodSpecWithOptions,
|
||||
mergeObjectMeta,
|
||||
useKubeScheduler
|
||||
useKubeScheduler,
|
||||
fixArgs
|
||||
} from './utils'
|
||||
|
||||
const kc = new k8s.KubeConfig()
|
||||
@@ -226,6 +227,7 @@ export async function execPodStep(
|
||||
stdin?: stream.Readable
|
||||
): Promise<void> {
|
||||
const exec = new k8s.Exec(kc)
|
||||
command = fixArgs(command)
|
||||
await new Promise(async function (resolve, reject) {
|
||||
await exec.exec(
|
||||
namespace(),
|
||||
|
||||
Reference in New Issue
Block a user