@@ -110793,7 +110793,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
110793110793 });
110794110794};
110795110795Object.defineProperty(exports, "__esModule", ({ value: true }));
110796- exports.setDefaultStack = exports.getCredentialHelperCommandLine = exports.saveGitCredentials = exports.saveSalesforceCredentials = exports.saveEncryptionKey = exports.createEncryptionKey = exports.setLicenseKey = exports.getInstalledVersion = void 0;
110796+ exports.setDefaultStack = exports.getCredentialHelperCommandLine = exports.saveGitCredentials = exports.saveSalesforceCredentials = exports.saveEncryptionKey = exports.createEncryptionKey = exports.setAccessToken = exports.getInstalledVersion = void 0;
110797110797const core = __nccwpck_require__(78167);
110798110798const io = __nccwpck_require__(30921);
110799110799const exec = __nccwpck_require__(2471);
@@ -110821,15 +110821,15 @@ function getInstalledVersion() {
110821110821 });
110822110822}
110823110823exports.getInstalledVersion = getInstalledVersion;
110824- function setLicenseKey(licenseKey ) {
110824+ function setAccessToken(accessToken ) {
110825110825 return __awaiter(this, void 0, void 0, function* () {
110826- core.debug("Validating license key ...");
110827- // Use the stack:list command to set license key (somewhat arbitrary, we currently don't have a better way).
110828- yield execOrgFlow("stack:list", `--licenseKey =${licenseKey }`);
110829- core.debug("License key was successfully validated and saved.");
110826+ core.debug("Validating access token ...");
110827+ // Use the stack:list command to set access token (somewhat arbitrary, we currently don't have a better way).
110828+ yield execOrgFlow("stack:list", `--accessToken =${accessToken }`);
110829+ core.debug("Access token was successfully validated and saved.");
110830110830 });
110831110831}
110832- exports.setLicenseKey = setLicenseKey ;
110832+ exports.setAccessToken = setAccessToken ;
110833110833function createEncryptionKey() {
110834110834 return __awaiter(this, void 0, void 0, function* () {
110835110835 core.debug("Creating new encryption key...");
@@ -111265,9 +111265,9 @@ function run() {
111265111265 const skipInstall = core.getInput("skip-install") ? // getBooleanInput() will throw if input is not present, so guard against that
111266111266 core.getBooleanInput("skip-install") :
111267111267 false;
111268- const licenseKey = core.getInput("license-key ");
111269- if (!licenseKey ) {
111270- core.setFailed("Input value 'license-key ' is required.");
111268+ const accessToken = core.getInput("access-token ");
111269+ if (!accessToken ) {
111270+ core.setFailed("Input value 'access-token ' is required.");
111271111271 }
111272111272 const salesforceUsername = core.getInput("salesforce-username");
111273111273 const salesforcePassword = core.getInput("salesforce-password");
@@ -111303,8 +111303,8 @@ function run() {
111303111303 // Download and install:
111304111304 const installedVersion = yield core.group("Install", () => (0, install_1.install)(versionSpec, includePrerelease, skipInstall));
111305111305 core.setOutput("version", installedVersion);
111306- // Validate and save license key :
111307- yield core.group("Set license key ", () => (0, cli_1.setLicenseKey)(licenseKey ));
111306+ // Validate and save access token token :
111307+ yield core.group("Set access token ", () => (0, cli_1.setAccessToken)(accessToken ));
111308111308 // Create (if needed) and save encryption key:
111309111309 const encryptionKey = yield core.group("Save encryption key", () => __awaiter(this, void 0, void 0, function* () {
111310111310 const encryptionKey = encryptionKeyInput || (yield (0, cli_1.createEncryptionKey)());
0 commit comments