mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-08 06:17:07 +00:00
Update index.ts
This commit is contained in:
parent
fd0efea367
commit
86165a4921
1 changed files with 8 additions and 2 deletions
10
src/index.ts
10
src/index.ts
|
|
@ -1,4 +1,5 @@
|
|||
import { printInfo } from "./common";
|
||||
import * as core from "@actions/core";
|
||||
|
||||
(async () => {
|
||||
if (process.platform !== "linux") {
|
||||
|
|
@ -6,6 +7,11 @@ import { printInfo } from "./common";
|
|||
return;
|
||||
}
|
||||
|
||||
var web_url = "https://app.stepsecurity.io";
|
||||
printInfo(web_url);
|
||||
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");
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue