mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-05 19:53:33 +00:00
9 lines
305 B
TypeScript
9 lines
305 B
TypeScript
import { isArcRunner, sendAllowedEndpoints } from "./arc-runner";
|
|
|
|
it("should correctly recognize arc based runner", async () => {
|
|
process.env["GITHUB_ACTIONS_RUNNER_EXTRA_USER_AGENT"] =
|
|
"actions-runner-controller/2.0.1";
|
|
|
|
let isArc: boolean = await isArcRunner();
|
|
expect(isArc).toBe(true);
|
|
});
|