From f270e41aae5466da1df52e9d73198b5067339c8a Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Wed, 1 May 2024 16:15:29 +0100 Subject: [PATCH] ci: use -A for wpt script (#23631) Fixes CI. The wpt setup script writes to `/etc/hosts` which now needs `--allow-all`. We use the latest release for the deno binary there so it's only impacted as of the 1.43.0 release. --- .github/workflows/ci.generate.ts | 10 +++------- .github/workflows/ci.yml | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index e19e9fdeed..249ddc6502 100755 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -881,14 +881,10 @@ const ci = { DENO_BIN: "./target/release/deno", }, run: [ - "deno run --allow-env --allow-net --allow-read --allow-run \\", - " --allow-write --unstable \\", - " --lock=tools/deno.lock.json \\", + "deno run -A --unstable --lock=tools/deno.lock.json \\", " ./tests/wpt/wpt.ts setup", - "deno run --allow-env --allow-net --allow-read --allow-run \\", - " --allow-write --unstable \\", - " --lock=tools/deno.lock.json \\", - " ./tests/wpt/wpt.ts run --quiet --release \\", + "deno run -A --unstable --lock=tools/deno.lock.json \\", + " ./tests/wpt/wpt.ts run --quiet --release \\", ' --binary="$DENO_BIN" \\', " --json=wpt.json \\", " --wptreport=wptreport.json", diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca9d2b756b..b96aa97095 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -538,14 +538,10 @@ jobs: env: DENO_BIN: ./target/release/deno run: |- - deno run --allow-env --allow-net --allow-read --allow-run \ - --allow-write --unstable \ - --lock=tools/deno.lock.json \ + deno run -A --unstable --lock=tools/deno.lock.json \ ./tests/wpt/wpt.ts setup - deno run --allow-env --allow-net --allow-read --allow-run \ - --allow-write --unstable \ - --lock=tools/deno.lock.json \ - ./tests/wpt/wpt.ts run --quiet --release \ + deno run -A --unstable --lock=tools/deno.lock.json \ + ./tests/wpt/wpt.ts run --quiet --release \ --binary="$DENO_BIN" \ --json=wpt.json \ --wptreport=wptreport.json