Skip to content

Commit 7d7758b

Browse files
committed
Skip proxy if no credentials
1 parent f6d19ed commit 7d7758b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

lib/start-proxy-action.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/start-proxy-action.ts

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

0 commit comments

Comments
 (0)