Skip to content

Commit 54b1c84

Browse files
authored
Merge pull request #2724 from github/marcogario/skip_proxy
start-proxy: Skip proxy setup if no credentials are available
2 parents 5f4f998 + 76622e7 commit 54b1c84

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

lib/start-proxy-action.js

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy-action.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/start-proxy-action.ts

+6
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ async function runWrapper() {
9999
actionsUtil.getOptionalInput("registries_credentials"),
100100
actionsUtil.getOptionalInput("language"),
101101
);
102+
103+
if (credentials.length === 0) {
104+
logger.info("No credentials found, skipping proxy setup.");
105+
return;
106+
}
107+
102108
logger.info(
103109
`Credentials loaded for the following registries:\n ${credentials
104110
.map((c) => credentialToStr(c))

0 commit comments

Comments
 (0)