Skip to content

Commit fb73755

Browse files
benjdlambertfrebenRugvipjhaals
committed
feat: replace vm2 sandbox with isolated-vm
Co-authored-by: Fredrik Adelöw <freben@gmail.com> Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com> Co-authored-by: Johan Haals <johan.haals@gmail.com> Signed-off-by: blam <ben@blam.sh>
1 parent 7e272d1 commit fb73755

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/scaffolder-backend/src/lib/templating/SecureTemplater.ts

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export class SecureTemplater {
115115
templateFilters = {},
116116
templateGlobals = {},
117117
} = options;
118+
118119
const isolate = new Isolate({ memoryLimit: 128 });
119120
const context = await isolate.createContext();
120121
const contextGlobal = context.global;

0 commit comments

Comments
 (0)