instancelabs/CDK Insights

Static and AI-powered analysis for AWS CDK — security scanning, cost optimization, and best practices

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
license-keyCDK Insights license key (required for AI analysis)no""
working-directoryDirectory containing CDK projectno.
stack-nameSpecific stack to analyze (optional, analyzes all by default)no""
ai-analysisEnable AI-powered analysis (requires license-key to be set)nofalse
fail-onFail workflow on severity levels (comma-separated: critical,high,medium,low)no""
fail-on-pillarsWhich WAF pillars count toward fail-on. Reliability, Cost, and Best-Practice findings are reported but do not block the deploy unless included here. Accepts a comma-separated list of "security", "reliability", "cost optimization", "operational excellence", "performance efficiency", "sustainability", or the shorthand "all". Default: security.nosecurity
fail-on-classFail the build on findings of these classes, regardless of severity or pillar. Comma-separated list of "security", "best-practice", "compliance". Orthogonal to fail-on / fail-on-pillars — block on real risk while best-practice advice stays non-blocking. Requires cdk-insights >= 1.44.1 (the finding-class axis); older CLIs emit no class data, so the gate never fires. Default: empty (gate off).no""
pr-commentPost analysis summary as PR commentnotrue
sarif-uploadGenerate SARIF file and upload to GitHub Code Scanning (requires security-events: write permission)nofalse
servicesFilter analysis to specific AWS services (comma-separated)no""
rule-filterFilter to specific rules (comma-separated rule IDs)no""
upload-artifactUpload report files (JSON, SARIF, markdown) as a GitHub artifactnotrue
artifact-nameName for the uploaded artifactnocdk-insights-report
github-tokenGitHub token for SARIF upload to Code Scanning (default: automatic)no${{ github.token }}
cdk-insights-versionSpecific version of cdk-insights to use (default: latest)nolatest
namedescription
total-issuesTotal number of issues found
critical-countNumber of critical issues
high-countNumber of high severity issues
medium-countNumber of medium severity issues
low-countNumber of low severity issues
sarif-filePath to SARIF file (if generated)
json-filePath to JSON results file
artifact-idID of the uploaded artifact (empty if upload-artifact is false)
exit-codeExit code from analysis (0 = success, 1 = issues found at fail-on severity)