Skip to content

Commit

Permalink
Fix token restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Jul 24, 2024
1 parent 229aed4 commit b4b8c71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45849,7 +45849,8 @@ async function runWorkflow(bufPath, inputs, moduleNames) {
async function login(bufPath, inputs) {
const { token, domain } = inputs;
if (token == "") {
throw new Error("No token provided");
core.debug("Skipping login, no token provided");
return;
}
core.debug(`Logging in to ${domain}`);
await exec.exec(bufPath, ["registry", "login", domain, "--token-stdin"], {
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ async function runWorkflow(
async function login(bufPath: string, inputs: Inputs) {
const { token, domain } = inputs;
if (token == "") {
throw new Error("No token provided");
core.debug("Skipping login, no token provided");
return;
}
core.debug(`Logging in to ${domain}`);
await exec.exec(bufPath, ["registry", "login", domain, "--token-stdin"], {
Expand Down

0 comments on commit b4b8c71

Please sign in to comment.