feat(scripts): add send-email script using nodemailer

Add a sandboxed send-email.js workflow script with SMTP settings
exposed via script config and password loaded from named secrets.
Allow nodemailer in the script sandbox require whitelist.

Co-authored-by: Nasyarobby Putra <nasyarobby@gmail.com>
This commit is contained in:
Cursor Agent
2026-08-15 01:04:34 +00:00
co-authored by nsrb
parent 5bfbafeb91
commit 13a46188ba
4 changed files with 159 additions and 1 deletions
+7 -1
View File
@@ -12,7 +12,13 @@ import { getSecretPlaintext } from "./secrets-store.js";
const hostRequire = createRequire(import.meta.url);
const ALLOWED_MODULES = new Set(["axios", "jsonata", "node-html-parser", "rss-parser"]);
const ALLOWED_MODULES = new Set([
"axios",
"jsonata",
"node-html-parser",
"nodemailer",
"rss-parser",
]);
const BUILTIN_NAMES = [
"Infinity",