mirror of
https://github.com/azure/login.git
synced 2026-06-08 06:17:08 +00:00
changes in main
This commit is contained in:
parent
13aa761aaa
commit
7e72509c6b
2 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ function main() {
|
|||
let servicePrincipalKey = secrets.getSecret("$.clientSecret", true);
|
||||
let tenantId = secrets.getSecret("$.tenantId", false);
|
||||
let subscriptionId = secrets.getSecret("$.subscriptionId", false);
|
||||
const enablePSSession = !!core.getInput('enable-PSSession');
|
||||
const enablePSSession = core.getInput('enable-PSSession').toLowerCase() === "true";
|
||||
if (!servicePrincipalId || !servicePrincipalKey || !tenantId || !subscriptionId) {
|
||||
throw new Error("Not all values are present in the creds object. Ensure clientId, clientSecret, tenantId and subscriptionId are supplied.");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ async function main() {
|
|||
let servicePrincipalKey = secrets.getSecret("$.clientSecret", true);
|
||||
let tenantId = secrets.getSecret("$.tenantId", false);
|
||||
let subscriptionId = secrets.getSecret("$.subscriptionId", false);
|
||||
const enablePSSession = !!core.getInput('enable-PSSession');
|
||||
const enablePSSession = core.getInput('enable-PSSession').toLowerCase() === "true";
|
||||
if (!servicePrincipalId || !servicePrincipalKey || !tenantId || !subscriptionId) {
|
||||
throw new Error("Not all values are present in the creds object. Ensure clientId, clientSecret, tenantId and subscriptionId are supplied.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue