mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-08 09:17:08 +00:00
parent
384396e21a
commit
fd4a942a7b
3 changed files with 5 additions and 5 deletions
4
dist/pre/index.js
vendored
4
dist/pre/index.js
vendored
|
|
@ -95448,9 +95448,9 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
|
|||
}
|
||||
return;
|
||||
}
|
||||
const _http = new lib.HttpClient();
|
||||
let _http = new lib.HttpClient();
|
||||
let statusCode;
|
||||
//_http.requestOptions = { socketTimeout: 3 * 1000 };
|
||||
_http.requestOptions = { socketTimeout: 3 * 1000 };
|
||||
try {
|
||||
const resp = yield _http.get(`${api_url}/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]}/monitor`);
|
||||
statusCode = resp.message.statusCode; // adding error code to check whether agent is getting installed or not.
|
||||
|
|
|
|||
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
|
|
@ -166,9 +166,9 @@ import { isArcRunner, sendAllowedEndpoints } from "./arc-runner";
|
|||
return;
|
||||
}
|
||||
|
||||
const _http = new httpm.HttpClient();
|
||||
let _http = new httpm.HttpClient();
|
||||
let statusCode;
|
||||
//_http.requestOptions = { socketTimeout: 3 * 1000 };
|
||||
_http.requestOptions = { socketTimeout: 3 * 1000 };
|
||||
try {
|
||||
const resp: httpm.HttpClientResponse = await _http.get(
|
||||
`${api_url}/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]}/monitor`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue