Skip to content

Commit

Permalink
Skip proxy if no credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
marcogario committed Jan 24, 2025
1 parent f6d19ed commit 434735a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/start-proxy-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/start-proxy-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/start-proxy-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ async function runWrapper() {
.join("\n")}`,
);

if (credentials.length === 0) {
logger.info("No credentials found, skipping proxy setup.");
return;
}

const ca = generateCertificateAuthority();
const proxyAuth = getProxyAuth();

Expand Down

0 comments on commit 434735a

Please sign in to comment.