Skip to content

Commit

Permalink
fix: timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics committed Jun 16, 2024
1 parent 7b35cbc commit 147275f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -290343,7 +290343,7 @@ const puppeteer_1 = __importDefault(__nccwpck_require__(19116));
const constants_1 = __nccwpck_require__(72655);
const types_1 = __nccwpck_require__(67597);
const REGEX_META_TAG = /<meta property="og:image" content="(.*?)">/;
const WAIT_SCAN_TIMEOUT = 60 * 1000; // 60 seconds
const WAIT_SCAN_TIMEOUT = 100 * 1000; // 100 seconds
/**
*
* @param username
Expand Down Expand Up @@ -290374,7 +290374,7 @@ exports.startScan = startScan;
* @param username The username of the user.
*/
async function getScanResults(scan, username) {
const browser = await puppeteer_1.default.launch();
const browser = await puppeteer_1.default.launch({ headless: true });
const page = await browser.newPage();
const url = `${constants_1.GitRoll.SCAN_URL}?id=${scan.id}&user=${username}&pid=${scan.profileId}&_rsc=5cmev`;
await page.goto(url);
Expand Down Expand Up @@ -290585,6 +290585,7 @@ async function run() {
const waitForScan = core.getBooleanInput("wait");
const content = await startScan(username, waitForScan);
core.info(`Results: ${JSON.stringify(content)}`);
await Promise.resolve();
}
exports.run = run;
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/api/gitroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from "./types";

const REGEX_META_TAG: RegExp = /<meta property="og:image" content="(.*?)">/;
const WAIT_SCAN_TIMEOUT: number = 60 * 1000; // 60 seconds
const WAIT_SCAN_TIMEOUT: number = 100 * 1000; // 100 seconds

/**
*
Expand Down

0 comments on commit 147275f

Please sign in to comment.