Compare commits
2 commits
main
...
cirrus-tes
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2f9cdcd95 | ||
|
|
778c6e0671 |
3 changed files with 27 additions and 27 deletions
22
dist/pre/index.js
vendored
22
dist/pre/index.js
vendored
|
|
@ -88144,7 +88144,7 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
|
||||||
disable_sudo: lib_core.getBooleanInput("disable-sudo"),
|
disable_sudo: lib_core.getBooleanInput("disable-sudo"),
|
||||||
disable_file_monitoring: lib_core.getBooleanInput("disable-file-monitoring"),
|
disable_file_monitoring: lib_core.getBooleanInput("disable-file-monitoring"),
|
||||||
private: ((_b = (_a = github.context === null || github.context === void 0 ? void 0 : github.context.payload) === null || _a === void 0 ? void 0 : _a.repository) === null || _b === void 0 ? void 0 : _b.private) || false,
|
private: ((_b = (_a = github.context === null || github.context === void 0 ? void 0 : github.context.payload) === null || _a === void 0 ? void 0 : _a.repository) === null || _b === void 0 ? void 0 : _b.private) || false,
|
||||||
is_github_hosted: isGithubHosted(),
|
is_github_hosted: true,
|
||||||
is_debug: lib_core.isDebug(),
|
is_debug: lib_core.isDebug(),
|
||||||
one_time_key: "",
|
one_time_key: "",
|
||||||
};
|
};
|
||||||
|
|
@ -88245,12 +88245,12 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
|
||||||
}
|
}
|
||||||
const runnerName = process.env.RUNNER_NAME || "";
|
const runnerName = process.env.RUNNER_NAME || "";
|
||||||
lib_core.info(`RUNNER_NAME: ${runnerName}`);
|
lib_core.info(`RUNNER_NAME: ${runnerName}`);
|
||||||
if (!isGithubHosted()) {
|
/*if (!isGithubHosted()) {
|
||||||
external_fs_.appendFileSync(process.env.GITHUB_STATE, `selfHosted=true${external_os_.EOL}`, {
|
fs.appendFileSync(process.env.GITHUB_STATE, `selfHosted=true${EOL}`, {
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
});
|
});
|
||||||
if (!external_fs_.existsSync("/home/agent/agent")) {
|
if (!fs.existsSync("/home/agent/agent")) {
|
||||||
lib_core.info(SELF_HOSTED_NO_AGENT_MESSAGE);
|
core.info(common.SELF_HOSTED_NO_AGENT_MESSAGE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (confg.egress_policy === "block") {
|
if (confg.egress_policy === "block") {
|
||||||
|
|
@ -88258,16 +88258,16 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
|
||||||
if (process.env.USER) {
|
if (process.env.USER) {
|
||||||
chownForFolder(process.env.USER, "/home/agent");
|
chownForFolder(process.env.USER, "/home/agent");
|
||||||
}
|
}
|
||||||
|
|
||||||
const confgStr = JSON.stringify(confg);
|
const confgStr = JSON.stringify(confg);
|
||||||
external_fs_.writeFileSync("/home/agent/block_event.json", confgStr);
|
fs.writeFileSync("/home/agent/block_event.json", confgStr);
|
||||||
yield setup_sleep(5000);
|
await sleep(5000);
|
||||||
}
|
} catch (error) {
|
||||||
catch (error) {
|
core.info(`[!] Unable to write block_event.json: ${error}`);
|
||||||
lib_core.info(`[!] Unable to write block_event.json: ${error}`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
let _http = new lib.HttpClient();
|
let _http = new lib.HttpClient();
|
||||||
let statusCode;
|
let statusCode;
|
||||||
_http.requestOptions = { socketTimeout: 3 * 1000 };
|
_http.requestOptions = { socketTimeout: 3 * 1000 };
|
||||||
|
|
|
||||||
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
|
|
@ -64,7 +64,7 @@ interface MonitorResponse {
|
||||||
disable_sudo: core.getBooleanInput("disable-sudo"),
|
disable_sudo: core.getBooleanInput("disable-sudo"),
|
||||||
disable_file_monitoring: core.getBooleanInput("disable-file-monitoring"),
|
disable_file_monitoring: core.getBooleanInput("disable-file-monitoring"),
|
||||||
private: context?.payload?.repository?.private || false,
|
private: context?.payload?.repository?.private || false,
|
||||||
is_github_hosted: isGithubHosted(),
|
is_github_hosted: true,
|
||||||
is_debug: core.isDebug(),
|
is_debug: core.isDebug(),
|
||||||
one_time_key: "",
|
one_time_key: "",
|
||||||
};
|
};
|
||||||
|
|
@ -208,7 +208,7 @@ interface MonitorResponse {
|
||||||
|
|
||||||
const runnerName = process.env.RUNNER_NAME || "";
|
const runnerName = process.env.RUNNER_NAME || "";
|
||||||
core.info(`RUNNER_NAME: ${runnerName}`);
|
core.info(`RUNNER_NAME: ${runnerName}`);
|
||||||
if (!isGithubHosted()) {
|
/*if (!isGithubHosted()) {
|
||||||
fs.appendFileSync(process.env.GITHUB_STATE, `selfHosted=true${EOL}`, {
|
fs.appendFileSync(process.env.GITHUB_STATE, `selfHosted=true${EOL}`, {
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
});
|
});
|
||||||
|
|
@ -230,7 +230,7 @@ interface MonitorResponse {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
let _http = new httpm.HttpClient();
|
let _http = new httpm.HttpClient();
|
||||||
let statusCode;
|
let statusCode;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue