[bot] Update dist directory

This commit is contained in:
bigdaz 2024-06-14 22:45:05 +00:00 committed by github-actions[bot]
parent 5f1c5827bf
commit b53238971c
8 changed files with 28 additions and 20 deletions

View file

@ -145153,11 +145153,11 @@ async function setupToken(develocityAccessKey, develocityTokenExpiry, enforceUrl
exportAccessKeyEnvVars(token); exportAccessKeyEnvVars(token);
} }
else { else {
clearAccessKeyEnvVarsWithDeprecationWarning(); handleMissingAccessTokenWithDeprecationWarning();
} }
} }
catch (e) { catch (e) {
clearAccessKeyEnvVarsWithDeprecationWarning(); handleMissingAccessTokenWithDeprecationWarning();
core.warning(`Failed to fetch short-lived token, reason: ${e}`); core.warning(`Failed to fetch short-lived token, reason: ${e}`);
} }
} }
@ -145167,11 +145167,13 @@ function exportAccessKeyEnvVars(value) {
; ;
[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value)); [configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value));
} }
function clearAccessKeyEnvVarsWithDeprecationWarning() { function handleMissingAccessTokenWithDeprecationWarning() {
if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) { if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) {
(0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`); (0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`);
} }
core.exportVariable(configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, ''); if (process.env[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar]) {
core.warning(`Failed to fetch short-lived token, using Develocity Access key`);
}
} }
async function getToken(enforceUrl, serverUrl, accessKey, expiry) { async function getToken(enforceUrl, serverUrl, accessKey, expiry) {
const empty = new Promise(r => r(null)); const empty = new Promise(r => r(null));

File diff suppressed because one or more lines are too long

View file

@ -96310,11 +96310,11 @@ async function setupToken(develocityAccessKey, develocityTokenExpiry, enforceUrl
exportAccessKeyEnvVars(token); exportAccessKeyEnvVars(token);
} }
else { else {
clearAccessKeyEnvVarsWithDeprecationWarning(); handleMissingAccessTokenWithDeprecationWarning();
} }
} }
catch (e) { catch (e) {
clearAccessKeyEnvVarsWithDeprecationWarning(); handleMissingAccessTokenWithDeprecationWarning();
core.warning(`Failed to fetch short-lived token, reason: ${e}`); core.warning(`Failed to fetch short-lived token, reason: ${e}`);
} }
} }
@ -96324,11 +96324,13 @@ function exportAccessKeyEnvVars(value) {
; ;
[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value)); [configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value));
} }
function clearAccessKeyEnvVarsWithDeprecationWarning() { function handleMissingAccessTokenWithDeprecationWarning() {
if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) { if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) {
(0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`); (0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`);
} }
core.exportVariable(configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, ''); if (process.env[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar]) {
core.warning(`Failed to fetch short-lived token, using Develocity Access key`);
}
} }
async function getToken(enforceUrl, serverUrl, accessKey, expiry) { async function getToken(enforceUrl, serverUrl, accessKey, expiry) {
const empty = new Promise(r => r(null)); const empty = new Promise(r => r(null));

File diff suppressed because one or more lines are too long

View file

@ -145081,11 +145081,11 @@ async function setupToken(develocityAccessKey, develocityTokenExpiry, enforceUrl
exportAccessKeyEnvVars(token); exportAccessKeyEnvVars(token);
} }
else { else {
clearAccessKeyEnvVarsWithDeprecationWarning(); handleMissingAccessTokenWithDeprecationWarning();
} }
} }
catch (e) { catch (e) {
clearAccessKeyEnvVarsWithDeprecationWarning(); handleMissingAccessTokenWithDeprecationWarning();
core.warning(`Failed to fetch short-lived token, reason: ${e}`); core.warning(`Failed to fetch short-lived token, reason: ${e}`);
} }
} }
@ -145095,11 +145095,13 @@ function exportAccessKeyEnvVars(value) {
; ;
[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value)); [configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value));
} }
function clearAccessKeyEnvVarsWithDeprecationWarning() { function handleMissingAccessTokenWithDeprecationWarning() {
if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) { if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) {
(0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`); (0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`);
} }
core.exportVariable(configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, ''); if (process.env[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar]) {
core.warning(`Failed to fetch short-lived token, using Develocity Access key`);
}
} }
async function getToken(enforceUrl, serverUrl, accessKey, expiry) { async function getToken(enforceUrl, serverUrl, accessKey, expiry) {
const empty = new Promise(r => r(null)); const empty = new Promise(r => r(null));

File diff suppressed because one or more lines are too long

View file

@ -142534,11 +142534,11 @@ async function setupToken(develocityAccessKey, develocityTokenExpiry, enforceUrl
exportAccessKeyEnvVars(token); exportAccessKeyEnvVars(token);
} }
else { else {
clearAccessKeyEnvVarsWithDeprecationWarning(); handleMissingAccessTokenWithDeprecationWarning();
} }
} }
catch (e) { catch (e) {
clearAccessKeyEnvVarsWithDeprecationWarning(); handleMissingAccessTokenWithDeprecationWarning();
core.warning(`Failed to fetch short-lived token, reason: ${e}`); core.warning(`Failed to fetch short-lived token, reason: ${e}`);
} }
} }
@ -142548,11 +142548,13 @@ function exportAccessKeyEnvVars(value) {
; ;
[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value)); [configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar].forEach(key => core.exportVariable(key, value));
} }
function clearAccessKeyEnvVarsWithDeprecationWarning() { function handleMissingAccessTokenWithDeprecationWarning() {
if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) { if (process.env[configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar]) {
(0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`); (0, deprecation_collector_1.recordDeprecation)(`The ${configuration_1.BuildScanConfig.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`);
} }
core.exportVariable(configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar, ''); if (process.env[configuration_1.BuildScanConfig.DevelocityAccessKeyEnvVar]) {
core.warning(`Failed to fetch short-lived token, using Develocity Access key`);
}
} }
async function getToken(enforceUrl, serverUrl, accessKey, expiry) { async function getToken(enforceUrl, serverUrl, accessKey, expiry) {
const empty = new Promise(r => r(null)); const empty = new Promise(r => r(null));

File diff suppressed because one or more lines are too long