Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
h0x0er committed Oct 17, 2024
1 parent 91182cc commit 30636fb
Show file tree
Hide file tree
Showing 8 changed files with 138 additions and 86 deletions.
22 changes: 11 additions & 11 deletions dist/post/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

140 changes: 93 additions & 47 deletions dist/pre/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pre/index.js.map

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions src/arc-runner.test.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
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();
let isArc: boolean = await isArcRunner();
expect(isArc).toBe(true);

});

it("should write endpoint files", () => {
process.env["isTest"] = "1";

it("should write endpoint files", ()=>{
process.env["isTest"] = "1"

let allowed_endpoints = ["github.com:443", "*.google.com:443", "youtube.com"].join(" ");
let allowed_endpoints = [
"github.com:443",
"*.google.com:443",
"youtube.com",
].join(" ");
sendAllowedEndpoints(allowed_endpoints);

})
});
Loading

0 comments on commit 30636fb

Please sign in to comment.