Skip to content

Commit 7e72509

Browse files
committed
changes in main
1 parent 13aa761 commit 7e72509

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function main() {
4040
let servicePrincipalKey = secrets.getSecret("$.clientSecret", true);
4141
let tenantId = secrets.getSecret("$.tenantId", false);
4242
let subscriptionId = secrets.getSecret("$.subscriptionId", false);
43-
const enablePSSession = !!core.getInput('enable-PSSession');
43+
const enablePSSession = core.getInput('enable-PSSession').toLowerCase() === "true";
4444
if (!servicePrincipalId || !servicePrincipalKey || !tenantId || !subscriptionId) {
4545
throw new Error("Not all values are present in the creds object. Ensure clientId, clientSecret, tenantId and subscriptionId are supplied.");
4646
}

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function main() {
2626
let servicePrincipalKey = secrets.getSecret("$.clientSecret", true);
2727
let tenantId = secrets.getSecret("$.tenantId", false);
2828
let subscriptionId = secrets.getSecret("$.subscriptionId", false);
29-
const enablePSSession = !!core.getInput('enable-PSSession');
29+
const enablePSSession = core.getInput('enable-PSSession').toLowerCase() === "true";
3030
if (!servicePrincipalId || !servicePrincipalKey || !tenantId || !subscriptionId) {
3131
throw new Error("Not all values are present in the creds object. Ensure clientId, clientSecret, tenantId and subscriptionId are supplied.");
3232
}

0 commit comments

Comments
 (0)