mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Skip proxy if no credentials
This commit is contained in:
4
lib/start-proxy-action.js
generated
4
lib/start-proxy-action.js
generated
@@ -100,6 +100,10 @@ async function runWrapper() {
|
||||
core.saveState("proxy-log-file", proxyLogFilePath);
|
||||
// Get the configuration options
|
||||
const credentials = (0, start_proxy_1.getCredentials)(logger, actionsUtil.getOptionalInput("registry_secrets"), actionsUtil.getOptionalInput("registries_credentials"), actionsUtil.getOptionalInput("language"));
|
||||
if (credentials.length === 0) {
|
||||
logger.info("No credentials found, skipping proxy setup.");
|
||||
return;
|
||||
}
|
||||
logger.info(`Credentials loaded for the following registries:\n ${credentials
|
||||
.map((c) => credentialToStr(c))
|
||||
.join("\n")}`);
|
||||
|
||||
Reference in New Issue
Block a user