@saplings/security
v0.17.2
Published
Apply runtime request policies and collect local source scan evidence for your own application.
Readme
@saplings/security
Apply runtime request policies and collect local source scan evidence for your own application.
Install
npm install --save-dev @saplings/securityQuick start
import { generateSarif, runScan } from '@saplings/security';
const report = await runScan({ root: './src' });
console.log(JSON.stringify(generateSarif(report), null, 2));
console.error('Not executed:', report.notExecutedScannerIds);API and integration
runScan(options?)returns findings plus execution and coverage metadata. Preserve JSON when you need complete coverage details. UsegenerateSarif(report)for SARIF consumers.Defenderprovides runtime policy middleware for server applications. Configure alerts, rate state, and trusted request context for your infrastructure.- Review scanner results and unexecuted checks as part of your verification process.
Read the integration guide for configuration and operational details.
