mirror of
https://github.com/azure/login.git
synced 2026-03-15 09:20:56 -04:00
* Initial commit
* updating package version
* adding secret info link in logs
* adding user-agent
* Update README.md
* Added changes for azure powershell login
Changes in loginAzurePowerShell.ts
using latest version
Added getlatestazmodule version
changes in runner info
code refactor
changes in loginAzurePowerShell
code refactor
Code refactor
Code refactor
added review comments
changes in scriptbuilder
changes in setmodulepath
added paths in tsconfig.json
Revert "added paths in tsconfig.json"
This reverts commit cb2f4176bf.
changes in action.yml
changes in main
added review comments
Added changes for review comments
Modified description in action.yml
Added telemetry info
Code refactor
added review comments
added review comments
removed tslint from package.json
added log in ServicePrincipalLogin
added boolean for error log
Added Unit tests (#15)
* Added unit tests for Azure PowerShell
* Added unit tests
* changes in utils
* removed babel
* changed variable name of enable-PSSession
* refactor
* added ci.yml
* changes in utils test
making login calls silent (#19)
Co-authored-by: Deepak Sattiraju <desattir@microsoft.com>
update utils test (#16)
* update utils test
* update utils test
* update serviceprincipallogin test
Co-authored-by: Microsoft GitHub User <msftgits@microsoft.com>
Co-authored-by: Sumiran Aggarwal <suaggar@microsoft.com>
Co-authored-by: UshaN <ushan@microsoft.com>
36 lines
1.7 KiB
JavaScript
36 lines
1.7 KiB
JavaScript
"use strict";
|
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
});
|
|
};
|
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
if (mod && mod.__esModule) return mod;
|
|
var result = {};
|
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
result["default"] = mod;
|
|
return result;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const io = __importStar(require("@actions/io"));
|
|
const exec = __importStar(require("@actions/exec"));
|
|
class PowerShellToolRunner {
|
|
static init() {
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
if (!PowerShellToolRunner.psPath) {
|
|
PowerShellToolRunner.psPath = yield io.which("pwsh", true);
|
|
}
|
|
});
|
|
}
|
|
static executePowerShellScriptBlock(scriptBlock, options = {}) {
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
yield exec.exec(`${PowerShellToolRunner.psPath} -Command`, [scriptBlock], options);
|
|
});
|
|
}
|
|
}
|
|
exports.default = PowerShellToolRunner;
|