Skip to content

Function: evaluateFsSecretLiteralsGuard() ​

ts
function evaluateFsSecretLiteralsGuard(
   node, 
   input, 
   _ctx
): PolicyGuardEvaluationResult;

Defined in: fs/src/executors/fs-write-guard-executors.ts:92

Evaluates an FsSecretLiteralsGuardNode (fs:secret-literals) against proposedContent (SPEC.md §4.3).

Scans proposed post-mutation file contents against built-in and custom secret regular expressions and blocks writes containing secret literals.

Parameters ​

ParameterTypeDescription
nodeFsSecretLiteralsGuardNodeSecret literals guard AST node.
inputPolicyGuardEvaluationInputTool name, proposed effects, and active leases.
_ctxStepExecutionContext<unknown>Step execution context.

Returns ​

PolicyGuardEvaluationResult

Guard evaluation result and projected violatedEffects.

Released under the MIT License.