mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-06 00:17:06 +00:00
26 lines
624 B
TypeScript
26 lines
624 B
TypeScript
import * as common from "./common";
|
|
import * as core from "@actions/core";
|
|
import isDocker from "is-docker";
|
|
|
|
(async () => {
|
|
if (process.platform !== "linux") {
|
|
console.log(common.UBUNTU_MESSAGE);
|
|
return;
|
|
}
|
|
if (isDocker()) {
|
|
console.log(common.CONTAINER_MESSAGE);
|
|
return;
|
|
}
|
|
|
|
if (
|
|
core.getBooleanInput("disable-telemetry") &&
|
|
core.getInput("egress-policy") === "block"
|
|
) {
|
|
console.log(
|
|
"Telemetry will not be sent to StepSecurity API as disable-telemetry is set to true"
|
|
);
|
|
} else {
|
|
var web_url = "https://app.stepsecurity.io";
|
|
common.printInfo(web_url);
|
|
}
|
|
})();
|