Skip to content

Commit

Permalink
Deploying to release from @ 8563438 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
rielas committed May 7, 2020
1 parent 30c11b3 commit 29ebd17
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1430,26 +1430,25 @@ function retest(token, uuid, name) {
let url = `https://nexploit.app/scans/${(_a = restRes.result) === null || _a === void 0 ? void 0 : _a.id}`;
console.log(`Success. Scan was created on ${url}`);
core.setOutput("url", url);
return Promise.resolve(restRes.result.id);
return;
}
case 400: {
core.setFailed("Failed to run scan");
break;
return;
}
case 401: {
core.setFailed("Failed to log in with provided credentials");
break;
return;
}
case 403: {
core.setFailed("The account doesn't have any permissions for a resource");
break;
return;
}
}
}
catch (err) {
core.setFailed("Failed: " + err.message);
}
return Promise.reject();
});
}
function create(token, scan) {
Expand All @@ -1465,26 +1464,25 @@ function create(token, scan) {
console.log(`Success. Scan was created on ${url}`);
core.setOutput("url", url);
core.setOutput("id", id);
return Promise.resolve(restRes.result.id);
return;
}
case 400: {
core.setFailed("Failed to run scan");
return Promise.reject("Failed to run scan");
return;
}
case 401: {
core.setFailed("Failed to log in with provided credentials");
return Promise.reject("Failed to log in with provided credentials");
return;
}
case 403: {
core.setFailed("The account doesn't have any permissions for a resource");
return Promise.reject("The account doesn't have any permissions for a resource");
return;
}
}
}
catch (err) {
core.setFailed("Failed: " + err.message);
}
return Promise.reject();
});
}
if (restartScanID) {
Expand Down

0 comments on commit 29ebd17

Please sign in to comment.