Skip to content

Commit 3038c00

Browse files
author
Irene Alvarado
committed
Restrict Deno permissions by removing -A flag
1 parent 6473bc1 commit 3038c00

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ async function run() {
457457
core.startGroup('Postprocess');
458458
core.debug(`Invoking ${config.postprocess} with ${filename}...`);
459459
try {
460-
const raw = child_process_1.execSync(`deno run -q -A --unstable ${config.postprocess} ${filename}`).toString();
460+
const raw = child_process_1.execSync(`deno run -q --allow-read --allow-write --allow-run --allow-net --allow-env --unstable ${config.postprocess} ${filename}`).toString();
461461
core.info("Deno output:");
462462
core.info(raw);
463463
}

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function run(): Promise<void> {
4141
core.debug(`Invoking ${config.postprocess} with ${filename}...`)
4242
try {
4343
const raw = execSync(
44-
`deno run -q -A --unstable ${config.postprocess} ${filename}`
44+
`deno run -q --allow-read --allow-write --allow-run --allow-net --allow-env --unstable ${config.postprocess} ${filename}`
4545
).toString()
4646

4747
core.info("Deno output:")

0 commit comments

Comments
 (0)