Skip to content

Commit

Permalink
Merge pull request #475 from h0x0er/fix-execSync
Browse files Browse the repository at this point in the history
Addressed execSync issues
  • Loading branch information
varunsh-coder authored Oct 18, 2024
2 parents 91182cc + 30636fb commit df8a07c
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 df8a07c

Please sign in to comment.