mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-07 15:17:12 +00:00
17 lines
432 B
TypeScript
17 lines
432 B
TypeScript
import { printInfo } from "./common";
|
|
import * as core from "@actions/core";
|
|
|
|
(async () => {
|
|
if (process.platform !== "linux") {
|
|
console.log("Only runs on linux");
|
|
return;
|
|
}
|
|
|
|
if (core.getInput("send-insights") === 'true'){
|
|
var web_url = "https://app.stepsecurity.io";
|
|
printInfo(web_url);
|
|
}
|
|
else{
|
|
core.warning("Insights will not be sent to StepSecurity API as send-insights is set to false");
|
|
}
|
|
})();
|