Update index.ts

This commit is contained in:
arjundashrath 2022-02-09 00:18:30 +05:30 committed by GitHub
commit 86165a4921
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");
}
})();