Skip to content

Commit 4c09555

Browse files
committed
Explicit value comparison.
1 parent 0abe59a commit 4c09555

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

actions/aws-param-to-env/index.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const execSync = require('child_process').execSync;
1+
const execSync = require("child_process").execSync;
22
const core = require("@actions/core");
33
const aws = require("aws-sdk");
44
const ssm = new aws.SSM();
@@ -7,18 +7,22 @@ async function main() {
77
try {
88
console.log("Begin AWS Param To Env");
99

10-
const debuLogging = core.getInput("debug-logging");
10+
const debuLogging = core.getInput("debug-logging") === "true";
1111
const decryptSecureStrings =
1212
core.getInput("decrypt-secure-strings") === "true";
1313
const paramStoreBasePathInput = core.getInput("param-store-base-paths", {
1414
required: true,
1515
});
1616
const paramStoreBasePaths = paramStoreBasePathInput.split(",");
1717
for (const basePath of paramStoreBasePaths) {
18-
const parameters = await getParamsByPath(basePath, decryptSecureStrings, debuLogging);
18+
const parameters = await getParamsByPath(
19+
basePath,
20+
decryptSecureStrings,
21+
debuLogging
22+
);
1923
setParamsInEnvironment(basePath, parameters);
2024
}
21-
25+
2226
console.log("End AWS Param To Env");
2327
} catch (error) {
2428
core.setFailed(error.message);
@@ -75,7 +79,7 @@ async function setParamsInEnvironment(path, params) {
7579

7680
// write the value into the github environment file
7781
const processCommand = `echo "${unixName}=${param.Value}" >> $GITHUB_ENV`;
78-
execSync(processCommand, {stdio: 'inherit'});
82+
execSync(processCommand, { stdio: "inherit" });
7983
}
8084
}
8185

0 commit comments

Comments
 (0)