mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-07 00:17:05 +00:00
add timeout
This commit is contained in:
parent
7bca9467a9
commit
a2d24fd62e
3 changed files with 4 additions and 3 deletions
2
dist/pre/index.js
vendored
2
dist/pre/index.js
vendored
|
|
@ -95710,7 +95710,7 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
|
|||
let statusCode;
|
||||
//_http.requestOptions = { socketTimeout: 3 * 1000 };
|
||||
try {
|
||||
const resp = yield lib_axios.get(`${api_url}/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]}/monitor`);
|
||||
const resp = yield lib_axios.get(`${api_url}/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]}/monitor`, { timeout: 3000 });
|
||||
statusCode = resp.status; // adding error code to check whether agent is getting installed or not.
|
||||
console.log(`statuscode: ${statusCode}`);
|
||||
/*fs.appendFileSync(
|
||||
|
|
|
|||
2
dist/pre/index.js.map
vendored
2
dist/pre/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -155,7 +155,8 @@ import { isArcRunner, sendAllowedEndpoints } from "./arc-runner";
|
|||
//_http.requestOptions = { socketTimeout: 3 * 1000 };
|
||||
try {
|
||||
const resp = await axios.get(
|
||||
`${api_url}/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]}/monitor`
|
||||
`${api_url}/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]}/monitor`,
|
||||
{ timeout: 3000 }
|
||||
);
|
||||
|
||||
statusCode = resp.status; // adding error code to check whether agent is getting installed or not.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue