[bot] Update dist directory

This commit is contained in:
bigdaz 2024-05-17 21:08:44 +00:00 committed by github-actions[bot]
parent 96b9cb4988
commit d4d72c9934
10 changed files with 99 additions and 30 deletions

View file

@ -144422,7 +144422,10 @@ class BuildScanConfig {
return this.getTermsOfUseProp('build-scan-terms-of-use-agree', 'build-scan-terms-of-service-agree');
}
getDevelocityAccessKey() {
return core.getInput('develocity-access-key') || process.env['DEVELOCITY_ACCESS_KEY'] || '';
return (core.getInput('develocity-access-key') ||
process.env[BuildScanConfig.DevelocityAccessKeyEnvVar] ||
process.env[BuildScanConfig.GradleEnterpriseAccessKeyEnvVar] ||
'');
}
getDevelocityTokenExpiry() {
return core.getInput('develocity-token-expiry');
@ -144450,6 +144453,8 @@ class BuildScanConfig {
}
}
exports.BuildScanConfig = BuildScanConfig;
BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
BuildScanConfig.GradleEnterpriseAccessKeyEnvVar = 'GRADLE_ENTERPRISE_ACCESS_KEY';
class GradleExecutionConfig {
getGradleVersion() {
return core.getInput('gradle-version');
@ -145083,29 +145088,40 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DevelocityAccessCredentials = exports.getToken = exports.setupToken = void 0;
const httpm = __importStar(__nccwpck_require__(15538));
const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
async function setupToken(develocityAccessKey, develocityTokenExpiry, enforceUrl, develocityUrl) {
const develocityAccesskeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
if (develocityAccessKey) {
try {
core.debug('Fetching short-lived token...');
const tokens = await getToken(enforceUrl, develocityUrl, develocityAccessKey, develocityTokenExpiry);
if (tokens != null && !tokens.isEmpty()) {
core.debug(`Got token(s), setting the ${develocityAccesskeyEnvVar} env var`);
core.debug(`Got token(s), setting the access key env vars`);
const token = tokens.raw();
core.setSecret(token);
core.exportVariable(develocityAccesskeyEnvVar, token);
exportAccessKeyEnvVars(token);
}
else {
core.exportVariable(develocityAccesskeyEnvVar, '');
clearAccessKeyEnvVarsWithDeprecationWarning();
}
}
catch (e) {
core.exportVariable(develocityAccesskeyEnvVar, '');
clearAccessKeyEnvVarsWithDeprecationWarning();
core.warning(`Failed to fetch short-lived token, reason: ${e}`);
}
}
}
exports.setupToken = setupToken;
function exportAccessKeyEnvVars(value) {
;
[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value));
}
function clearAccessKeyEnvVarsWithDeprecationWarning() {
if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) {
(0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`);
}
core.exportVariable(configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, '');
}
async function getToken(enforceUrl, serverUrl, accessKey, expiry) {
const empty = new Promise(r => r(null));
const develocityAccessKey = DevelocityAccessCredentials.parse(accessKey);

File diff suppressed because one or more lines are too long

View file

@ -95850,7 +95850,10 @@ class BuildScanConfig {
return this.getTermsOfUseProp('build-scan-terms-of-use-agree', 'build-scan-terms-of-service-agree');
}
getDevelocityAccessKey() {
return core.getInput('develocity-access-key') || process.env['DEVELOCITY_ACCESS_KEY'] || '';
return (core.getInput('develocity-access-key') ||
process.env[BuildScanConfig.DevelocityAccessKeyEnvVar] ||
process.env[BuildScanConfig.GradleEnterpriseAccessKeyEnvVar] ||
'');
}
getDevelocityTokenExpiry() {
return core.getInput('develocity-token-expiry');
@ -95878,6 +95881,8 @@ class BuildScanConfig {
}
}
exports.BuildScanConfig = BuildScanConfig;
BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
BuildScanConfig.GradleEnterpriseAccessKeyEnvVar = 'GRADLE_ENTERPRISE_ACCESS_KEY';
class GradleExecutionConfig {
getGradleVersion() {
return core.getInput('gradle-version');
@ -96240,29 +96245,40 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DevelocityAccessCredentials = exports.getToken = exports.setupToken = void 0;
const httpm = __importStar(__nccwpck_require__(5538));
const core = __importStar(__nccwpck_require__(2186));
const configuration_1 = __nccwpck_require__(5778);
const deprecation_collector_1 = __nccwpck_require__(2572);
async function setupToken(develocityAccessKey, develocityTokenExpiry, enforceUrl, develocityUrl) {
const develocityAccesskeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
if (develocityAccessKey) {
try {
core.debug('Fetching short-lived token...');
const tokens = await getToken(enforceUrl, develocityUrl, develocityAccessKey, develocityTokenExpiry);
if (tokens != null && !tokens.isEmpty()) {
core.debug(`Got token(s), setting the ${develocityAccesskeyEnvVar} env var`);
core.debug(`Got token(s), setting the access key env vars`);
const token = tokens.raw();
core.setSecret(token);
core.exportVariable(develocityAccesskeyEnvVar, token);
exportAccessKeyEnvVars(token);
}
else {
core.exportVariable(develocityAccesskeyEnvVar, '');
clearAccessKeyEnvVarsWithDeprecationWarning();
}
}
catch (e) {
core.exportVariable(develocityAccesskeyEnvVar, '');
clearAccessKeyEnvVarsWithDeprecationWarning();
core.warning(`Failed to fetch short-lived token, reason: ${e}`);
}
}
}
exports.setupToken = setupToken;
function exportAccessKeyEnvVars(value) {
;
[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value));
}
function clearAccessKeyEnvVarsWithDeprecationWarning() {
if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) {
(0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`);
}
core.exportVariable(configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, '');
}
async function getToken(enforceUrl, serverUrl, accessKey, expiry) {
const empty = new Promise(r => r(null));
const develocityAccessKey = DevelocityAccessCredentials.parse(accessKey);

File diff suppressed because one or more lines are too long

View file

@ -144422,7 +144422,10 @@ class BuildScanConfig {
return this.getTermsOfUseProp('build-scan-terms-of-use-agree', 'build-scan-terms-of-service-agree');
}
getDevelocityAccessKey() {
return core.getInput('develocity-access-key') || process.env['DEVELOCITY_ACCESS_KEY'] || '';
return (core.getInput('develocity-access-key') ||
process.env[BuildScanConfig.DevelocityAccessKeyEnvVar] ||
process.env[BuildScanConfig.GradleEnterpriseAccessKeyEnvVar] ||
'');
}
getDevelocityTokenExpiry() {
return core.getInput('develocity-token-expiry');
@ -144450,6 +144453,8 @@ class BuildScanConfig {
}
}
exports.BuildScanConfig = BuildScanConfig;
BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
BuildScanConfig.GradleEnterpriseAccessKeyEnvVar = 'GRADLE_ENTERPRISE_ACCESS_KEY';
class GradleExecutionConfig {
getGradleVersion() {
return core.getInput('gradle-version');
@ -145011,29 +145016,40 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DevelocityAccessCredentials = exports.getToken = exports.setupToken = void 0;
const httpm = __importStar(__nccwpck_require__(15538));
const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
async function setupToken(develocityAccessKey, develocityTokenExpiry, enforceUrl, develocityUrl) {
const develocityAccesskeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
if (develocityAccessKey) {
try {
core.debug('Fetching short-lived token...');
const tokens = await getToken(enforceUrl, develocityUrl, develocityAccessKey, develocityTokenExpiry);
if (tokens != null && !tokens.isEmpty()) {
core.debug(`Got token(s), setting the ${develocityAccesskeyEnvVar} env var`);
core.debug(`Got token(s), setting the access key env vars`);
const token = tokens.raw();
core.setSecret(token);
core.exportVariable(develocityAccesskeyEnvVar, token);
exportAccessKeyEnvVars(token);
}
else {
core.exportVariable(develocityAccesskeyEnvVar, '');
clearAccessKeyEnvVarsWithDeprecationWarning();
}
}
catch (e) {
core.exportVariable(develocityAccesskeyEnvVar, '');
clearAccessKeyEnvVarsWithDeprecationWarning();
core.warning(`Failed to fetch short-lived token, reason: ${e}`);
}
}
}
exports.setupToken = setupToken;
function exportAccessKeyEnvVars(value) {
;
[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value));
}
function clearAccessKeyEnvVarsWithDeprecationWarning() {
if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) {
(0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`);
}
core.exportVariable(configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, '');
}
async function getToken(enforceUrl, serverUrl, accessKey, expiry) {
const empty = new Promise(r => r(null));
const develocityAccessKey = DevelocityAccessCredentials.parse(accessKey);

File diff suppressed because one or more lines are too long

View file

@ -141875,7 +141875,10 @@ class BuildScanConfig {
return this.getTermsOfUseProp('build-scan-terms-of-use-agree', 'build-scan-terms-of-service-agree');
}
getDevelocityAccessKey() {
return core.getInput('develocity-access-key') || process.env['DEVELOCITY_ACCESS_KEY'] || '';
return (core.getInput('develocity-access-key') ||
process.env[BuildScanConfig.DevelocityAccessKeyEnvVar] ||
process.env[BuildScanConfig.GradleEnterpriseAccessKeyEnvVar] ||
'');
}
getDevelocityTokenExpiry() {
return core.getInput('develocity-token-expiry');
@ -141903,6 +141906,8 @@ class BuildScanConfig {
}
}
exports.BuildScanConfig = BuildScanConfig;
BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
BuildScanConfig.GradleEnterpriseAccessKeyEnvVar = 'GRADLE_ENTERPRISE_ACCESS_KEY';
class GradleExecutionConfig {
getGradleVersion() {
return core.getInput('gradle-version');
@ -142464,29 +142469,40 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DevelocityAccessCredentials = exports.getToken = exports.setupToken = void 0;
const httpm = __importStar(__nccwpck_require__(15538));
const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
async function setupToken(develocityAccessKey, develocityTokenExpiry, enforceUrl, develocityUrl) {
const develocityAccesskeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
if (develocityAccessKey) {
try {
core.debug('Fetching short-lived token...');
const tokens = await getToken(enforceUrl, develocityUrl, develocityAccessKey, develocityTokenExpiry);
if (tokens != null && !tokens.isEmpty()) {
core.debug(`Got token(s), setting the ${develocityAccesskeyEnvVar} env var`);
core.debug(`Got token(s), setting the access key env vars`);
const token = tokens.raw();
core.setSecret(token);
core.exportVariable(develocityAccesskeyEnvVar, token);
exportAccessKeyEnvVars(token);
}
else {
core.exportVariable(develocityAccesskeyEnvVar, '');
clearAccessKeyEnvVarsWithDeprecationWarning();
}
}
catch (e) {
core.exportVariable(develocityAccesskeyEnvVar, '');
clearAccessKeyEnvVarsWithDeprecationWarning();
core.warning(`Failed to fetch short-lived token, reason: ${e}`);
}
}
}
exports.setupToken = setupToken;
function exportAccessKeyEnvVars(value) {
;
[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value));
}
function clearAccessKeyEnvVarsWithDeprecationWarning() {
if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) {
(0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`);
}
core.exportVariable(configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, '');
}
async function getToken(enforceUrl, serverUrl, accessKey, expiry) {
const empty = new Promise(r => r(null));
const develocityAccessKey = DevelocityAccessCredentials.parse(accessKey);

File diff suppressed because one or more lines are too long

View file

@ -90054,7 +90054,10 @@ class BuildScanConfig {
return this.getTermsOfUseProp('build-scan-terms-of-use-agree', 'build-scan-terms-of-service-agree');
}
getDevelocityAccessKey() {
return core.getInput('develocity-access-key') || process.env['DEVELOCITY_ACCESS_KEY'] || '';
return (core.getInput('develocity-access-key') ||
process.env[BuildScanConfig.DevelocityAccessKeyEnvVar] ||
process.env[BuildScanConfig.GradleEnterpriseAccessKeyEnvVar] ||
'');
}
getDevelocityTokenExpiry() {
return core.getInput('develocity-token-expiry');
@ -90082,6 +90085,8 @@ class BuildScanConfig {
}
}
exports.BuildScanConfig = BuildScanConfig;
BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
BuildScanConfig.GradleEnterpriseAccessKeyEnvVar = 'GRADLE_ENTERPRISE_ACCESS_KEY';
class GradleExecutionConfig {
getGradleVersion() {
return core.getInput('gradle-version');

File diff suppressed because one or more lines are too long