From 8616d520afb568a534439054a6e29ac8358e8e9f Mon Sep 17 00:00:00 2001 From: Mathieu Bergeron Date: Fri, 23 Oct 2020 15:02:42 -0400 Subject: [PATCH] Update dist/index.js Signed-off-by: Mathieu Bergeron --- dist/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 79a431d..06d16f9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4248,9 +4248,9 @@ function getImageID() { exports.getImageID = getImageID; function getSecret(kvp) { return __awaiter(this, void 0, void 0, function* () { - const sepIndex = kvp.indexOf('='); - const key = kvp.substr(0, sepIndex); - const value = kvp.substr(sepIndex + 1); + const delimiterIndex = kvp.indexOf('='); + const key = kvp.substring(0, delimiterIndex); + const value = kvp.substring(delimiterIndex + 1); const secretFile = context.tmpNameSync({ tmpdir: context.tmpDir() });