Skip to content

Commit

Permalink
updating all web url references to use the constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkurmi committed Mar 26, 2024
1 parent 7dcdfc6 commit 49c976f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as core from "@actions/core";
import * as fs from "fs";
import { STEPSECURITY_WEB_URL } from "./configs";

export function printInfo(web_url) {
console.log(
Expand Down Expand Up @@ -51,7 +52,7 @@ export async function addSummary() {
return;
}

const web_url = "https://app.stepsecurity.io";
const web_url = STEPSECURITY_WEB_URL;
const insights_url = `${web_url}/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]}`;

const log = "/home/agent/agent.log";
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as common from "./common";
import * as core from "@actions/core";
import isDocker from "is-docker";
import { STEPSECURITY_WEB_URL } from "./configs";

(async () => {
if (process.platform !== "linux") {
Expand Down Expand Up @@ -28,7 +29,7 @@ import isDocker from "is-docker";
"Telemetry will not be sent to StepSecurity API as disable-telemetry is set to true"
);
} else {
var web_url = "https://app.stepsecurity.io";
var web_url = STEPSECURITY_WEB_URL;
common.printInfo(web_url);
}
})();

0 comments on commit 49c976f

Please sign in to comment.