(yamlContent: string)
| 244 | } |
| 245 | |
| 246 | export function replaceInputsWithSecrets(yamlContent: string): string { |
| 247 | const inputsToSecretsMap: Record<string, string> = {}; |
| 248 | |
| 249 | getTemplateVariables(yamlContent) |
| 250 | .filter((v) => v.startsWith("inputs.")) |
| 251 | .forEach((v) => { |
| 252 | inputsToSecretsMap[v] = `\${{ ${v.replace("inputs.", "secrets.")} }}`; |
| 253 | }); |
| 254 | |
| 255 | return fillTemplateVariables(yamlContent, inputsToSecretsMap); |
| 256 | } |
| 257 | |
| 258 | function renderTemplateData( |
| 259 | rawYaml: string, |
no test coverage detected