feat: Add IDP CLI tools for CI integration#76
Conversation
Add forge-scorecard and forge-policy bin commands for running IDP checks from terminal and CI pipelines. Includes integration guides and 10 tests.
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
forge-scorecardCLI — evaluate project quality (security, quality, performance, compliance) with configurable thresholdsforge-policyCLI — enforce governance policies with block/warn/log actionsdocs/guides/Changes
patterns/idp/scorecards/cli.ts— Scorecard CLI entry pointpatterns/idp/policy-engine/cli.ts— Policy engine CLI entry pointpackage.json— Added bin entries for both CLIs, version 1.5.0tsconfig.json— Includepatterns/idp/**/*.tsin compilationdocs/guides/scorecard-integration.md— Usage guide with CI workflow templatedocs/guides/policy-engine-integration.md— Usage guide with custom policy examplesREADME.md— Added IDP section with tool referencesTest plan
npm run buildpasses (tsc compiles IDP patterns)npm testpasses (317 tests, 13 suites)forge-scorecard --project-dir . --output summaryproduces valid outputforge-policy --policy-dir ./patterns/idp/policies --fail-on-blockruns without error🤖 Generated with Claude Code