Skip to content

Commit

Permalink
chore: allow-sys on local run
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamBergamin committed Aug 29, 2024
1 parent bd1bc36 commit b29b17c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/local-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const getCommandline = function (
"--config=deno.jsonc",
"--allow-read",
"--allow-env",
"--allow-sys=osRelease",
];

const allowedDomains = manifest.outgoing_domains ?? [];
Expand Down
6 changes: 6 additions & 0 deletions src/tests/local-run.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Deno.test("getCommandline function", async (t) => {
"--config=deno.jsonc",
"--allow-read",
"--allow-env",
"--allow-sys=osRelease",
"--allow-net=example.com,slack.com,api.slack.com,files.slack.com,deno.land",
FAKE_DENO_LAND_EXPECTED_MODULE,
]);
Expand All @@ -63,6 +64,7 @@ Deno.test("getCommandline function", async (t) => {
"--config=deno.jsonc",
"--allow-read",
"--allow-env",
"--allow-sys=osRelease",
"--unsafely-ignore-certificate-errors=dev1234.slack.com",
"--allow-net=example.com,dev1234.slack.com,deno.land",
FAKE_DENO_LAND_EXPECTED_MODULE,
Expand All @@ -84,6 +86,7 @@ Deno.test("getCommandline function", async (t) => {
"--config=deno.jsonc",
"--allow-read",
"--allow-env",
"--allow-sys=osRelease",
"--allow-net=slack.com,api.slack.com,files.slack.com,deno.land",
FAKE_DENO_LAND_EXPECTED_MODULE,
]);
Expand All @@ -104,6 +107,7 @@ Deno.test("getCommandline function", async (t) => {
"--config=deno.jsonc",
"--allow-read",
"--allow-env",
"--allow-sys=osRelease",
"--allow-net=slack.com,api.slack.com,files.slack.com,deno.land",
FAKE_FILE_EXPECTED_MODULE,
]);
Expand All @@ -124,6 +128,7 @@ Deno.test("getCommandline function", async (t) => {
"--config=deno.jsonc",
"--allow-read",
"--allow-env",
"--allow-sys=osRelease",
"--allow-net=example.com,slack.com,api.slack.com,files.slack.com,deno.land",
"file:///local-run-function.ts",
]);
Expand All @@ -146,6 +151,7 @@ Deno.test("getCommandline function", async (t) => {
"--config=deno.jsonc",
"--allow-read",
"--allow-env",
"--allow-sys=osRelease",
"--allow-net=example.com,slack.com,api.slack.com,files.slack.com,deno.land",
"file:///local-run-function.ts",
"--mycustomflag",
Expand Down

0 comments on commit b29b17c

Please sign in to comment.