mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-07 10:47:12 +00:00
update
This commit is contained in:
parent
34aaaff088
commit
787deb7075
3 changed files with 5 additions and 5 deletions
4
dist/pre/index.js
vendored
4
dist/pre/index.js
vendored
|
|
@ -88524,7 +88524,6 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
|
|||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
process.env.NODE_DEBUG = "http";
|
||||
|
||||
|
||||
|
||||
|
|
@ -88664,10 +88663,11 @@ process.env.NODE_DEBUG = "http";
|
|||
//return;
|
||||
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.
|
||||
console.log(`statuscode: ${statusCode}`);
|
||||
/*fs.appendFileSync(
|
||||
process.env.GITHUB_STATE,
|
||||
`monitorStatusCode=${statusCode}${EOL}`,
|
||||
|
|
|
|||
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
|
|
@ -1,4 +1,3 @@
|
|||
process.env.NODE_DEBUG = "http";
|
||||
import * as core from "@actions/core";
|
||||
import * as cp from "child_process";
|
||||
import * as fs from "fs";
|
||||
|
|
@ -169,12 +168,13 @@ import { isArcRunner, sendAllowedEndpoints } from "./arc-runner";
|
|||
//return;
|
||||
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`
|
||||
);
|
||||
statusCode = resp.message.statusCode; // adding error code to check whether agent is getting installed or not.
|
||||
console.log(`statuscode: ${statusCode}`);
|
||||
/*fs.appendFileSync(
|
||||
process.env.GITHUB_STATE,
|
||||
`monitorStatusCode=${statusCode}${EOL}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue