diff --git a/setup-env/action.yml b/setup-env/action.yml index 6f6d836..c6d6031 100644 --- a/setup-env/action.yml +++ b/setup-env/action.yml @@ -20,7 +20,7 @@ inputs: github-app: description: 'BrowserStack Github App' required: false - default: 'browserstack-auth[bot]' + default: 'browserstack[bot]' runs: using: 'node20' main: 'dist/index.js' diff --git a/setup-env/config/constants.js b/setup-env/config/constants.js index e257f2b..85471bd 100644 --- a/setup-env/config/constants.js +++ b/setup-env/config/constants.js @@ -16,7 +16,6 @@ module.exports = { }, BROWSERSTACK_TEMPLATE: { - // DETAILS_API_URL: 'https://integrate.browserstack.com/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true', - DETAILS_API_URL: 'https://8c12-2405-201-6806-d09b-4d8a-335-3b92-fcbe.ngrok-free.app/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true', + DETAILS_API_URL: 'https://integrate.browserstack.com/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true', }, }; diff --git a/setup-env/dist/index.js b/setup-env/dist/index.js index f5dc002..708dd29 100644 --- a/setup-env/dist/index.js +++ b/setup-env/dist/index.js @@ -22,8 +22,7 @@ module.exports = { }, BROWSERSTACK_TEMPLATE: { - // DETAILS_API_URL: 'https://integrate.browserstack.com/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true', - DETAILS_API_URL: 'https://8c12-2405-201-6806-d09b-4d8a-335-3b92-fcbe.ngrok-free.app/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true', + DETAILS_API_URL: 'https://integrate.browserstack.com/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true', }, }; @@ -9621,13 +9620,13 @@ class InputValidator { * @throws {Error} If the input is not a valid non-empty string */ static validateGithubAppName(githubAppName) { - if (githubAppName && githubAppName.toLowerCase() !== 'browserstack-auth[bot]') { + if (githubAppName && githubAppName.toLowerCase() !== 'browserstack[bot]') { if (typeof githubAppName === 'string' && githubAppName.trim().length > 0) { return githubAppName; } throw new Error("Invalid input for 'github-app'. Must be a valid string."); } - return 'browserstack-auth[bot]'; + return 'browserstack[bot]'; } } diff --git a/setup-env/src/actionInput/inputValidator.js b/setup-env/src/actionInput/inputValidator.js index 5a4526f..3dd80d1 100644 --- a/setup-env/src/actionInput/inputValidator.js +++ b/setup-env/src/actionInput/inputValidator.js @@ -140,13 +140,13 @@ class InputValidator { * @throws {Error} If the input is not a valid non-empty string */ static validateGithubAppName(githubAppName) { - if (githubAppName && githubAppName.toLowerCase() !== 'browserstack-auth[bot]') { + if (githubAppName && githubAppName.toLowerCase() !== 'browserstack[bot]') { if (typeof githubAppName === 'string' && githubAppName.trim().length > 0) { return githubAppName; } throw new Error("Invalid input for 'github-app'. Must be a valid string."); } - return 'browserstack-auth[bot]'; + return 'browserstack[bot]'; } }