Skip to content

Commit 5107bb1

Browse files
authored
Escape backtick in writeEntryPointScript (#101)
1 parent 547ed30 commit 5107bb1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/k8s/src/k8s/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ async function getCurrentNodeName(): Promise<string> {
473473
}
474474
return nodeName
475475
}
476+
476477
export function namespace(): string {
477478
if (process.env['ACTIONS_RUNNER_KUBERNETES_NAMESPACE']) {
478479
return process.env['ACTIONS_RUNNER_KUBERNETES_NAMESPACE']

packages/k8s/src/k8s/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ export function writeEntryPointScript(
125125
`"${key}=${value
126126
.replace(/\\/g, '\\\\')
127127
.replace(/"/g, '\\"')
128-
.replace(/\$/g, '\\$')}"`
128+
.replace(/\$/g, '\\$')
129+
.replace(/`/g, '\\`')}"`
129130
)
130131
}
131132
environmentPrefix = `env ${envBuffer.join(' ')} `

0 commit comments

Comments
 (0)