Merge pull request #2740 from github/revert-2724-marcogario/skip_proxy
Revert "start-proxy: Skip proxy setup if no credentials are available"
This commit is contained in:
commit
14b9c0ec59
3 changed files with 1 additions and 11 deletions
4
lib/start-proxy-action.js
generated
4
lib/start-proxy-action.js
generated
|
|
@ -99,10 +99,6 @@ async function runWrapper() {
|
||||||
core.saveState("proxy-log-file", proxyLogFilePath);
|
core.saveState("proxy-log-file", proxyLogFilePath);
|
||||||
// Get the configuration options
|
// Get the configuration options
|
||||||
const credentials = (0, start_proxy_1.getCredentials)(logger, actionsUtil.getOptionalInput("registry_secrets"), actionsUtil.getOptionalInput("registries_credentials"), actionsUtil.getOptionalInput("language"));
|
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
|
logger.info(`Credentials loaded for the following registries:\n ${credentials
|
||||||
.map((c) => credentialToStr(c))
|
.map((c) => credentialToStr(c))
|
||||||
.join("\n")}`);
|
.join("\n")}`);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -99,12 +99,6 @@ async function runWrapper() {
|
||||||
actionsUtil.getOptionalInput("registries_credentials"),
|
actionsUtil.getOptionalInput("registries_credentials"),
|
||||||
actionsUtil.getOptionalInput("language"),
|
actionsUtil.getOptionalInput("language"),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (credentials.length === 0) {
|
|
||||||
logger.info("No credentials found, skipping proxy setup.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
`Credentials loaded for the following registries:\n ${credentials
|
`Credentials loaded for the following registries:\n ${credentials
|
||||||
.map((c) => credentialToStr(c))
|
.map((c) => credentialToStr(c))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue