DenoDDeno
Powered by
BehnamB
Denoβ€’16mo ago
Behnam

Is there any way to limit write access of the `deno run` execution to its `Deno.makeTempDir` calls?

At the moment, the only way to enable
Deno.makeTempDir()
Deno.makeTempDir()
seem to either using
--allow-write
--allow-write
(writing to any file/dir path), or explicitly creating and maintaining a root temp folder and update all
Deno.makeTempDir
Deno.makeTempDir
calls with a
{ dir: $MY_ROOT_TEMP_DIR }
{ dir: $MY_ROOT_TEMP_DIR }
option.

If there was a way to access the effective global temp root of Deno on the system, at least we could start with
--allow-write=DENO_TEMP_ROOT
--allow-write=DENO_TEMP_ROOT
, where
DENO_TEMP_ROOT
DENO_TEMP_ROOT
would be set via a
deno
deno
call.

Can anyone think of any other options here?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Is there a way to write a Deno.AtomicCheck that succeeds for any non-null versionstamp?
dzhv.ioDdzhv.io / help
2y ago
Is there any way to run deno as a cluster on one machine? (like pm2)
kittyKkitty / help
3y ago