harden-runner/src/common.ts
Varun Sharma b1777d55ae Add color
2021-11-25 16:29:46 -08:00

10 lines
266 B
TypeScript

export function printInfo(web_url) {
console.log(
"\x1b[32m%s\x1b[0m",
"View security insights and recommended policy at:"
);
console.log(
`${web_url}/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]}`
);
}