mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Apply review feedback
This commit is contained in:
6
lib/upload-lib.js
generated
6
lib/upload-lib.js
generated
@@ -88544,12 +88544,12 @@ function getApiDetails() {
|
||||
function getApiClient() {
|
||||
return createApiClientWithDetails(getApiDetails());
|
||||
}
|
||||
function getAuthorizationHeaderFor(logger, apiDetails, url2, purpose = "CodeQL tools") {
|
||||
function getAuthorizationHeaderFor(logger, apiDetails, url2) {
|
||||
if (url2.startsWith(`${apiDetails.url}/`) || apiDetails.apiURL && url2.startsWith(`${apiDetails.apiURL}/`)) {
|
||||
logger.debug(`Providing an authorization token to download ${purpose}.`);
|
||||
logger.debug(`Providing an authorization token for '${url2}'.`);
|
||||
return `token ${apiDetails.auth}`;
|
||||
}
|
||||
logger.debug(`Downloading ${purpose} without an authorization token.`);
|
||||
logger.debug(`Requesting '${url2}' without an authorization token.`);
|
||||
return void 0;
|
||||
}
|
||||
var cachedGitHubVersion = void 0;
|
||||
|
||||
Reference in New Issue
Block a user