({ arb, npm, tree, includeWhenIgnored = false })
| 16 | // ignore-scripts is set, so approve/deny can show what you'd move from a |
| 17 | // blanket ignore-scripts to an allowlist. Execution callers leave it false. |
| 18 | const checkAllowScripts = async ({ arb, npm, tree, includeWhenIgnored = false }) => |
| 19 | collectUnreviewedScripts({ |
| 20 | tree: tree || arb.actualTree, |
| 21 | policy: arb.options?.allowScripts || null, |
| 22 | ignoreScripts: !!arb.options?.ignoreScripts, |
| 23 | dangerouslyAllowAllScripts: !!npm?.flatOptions?.dangerouslyAllowAllScripts, |
| 24 | includeWhenIgnored, |
| 25 | }) |
| 26 | |
| 27 | module.exports = checkAllowScripts |
no outgoing calls
no test coverage detected
searching dependent graphs…