Skip to content

Commit f057e79

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

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-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

+8
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,20 @@ 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))
106112
.join("\n")}`,
107113
);
108114

115+
116+
109117
const ca = generateCertificateAuthority();
110118
const proxyAuth = getProxyAuth();
111119

0 commit comments

Comments
 (0)