@synapta/skills 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -4
- package/package.json +3 -4
- package/skills/ATTRIBUTION.md +80 -0
- package/skills/accessibility-audit/SKILL.md +325 -0
- package/skills/accessibility-audit/reference/wcag-checklist.md +103 -0
- package/skills/apns-notifier/SKILL.md +86 -0
- package/skills/approval-policy-enforcer/SKILL.md +66 -0
- package/skills/apps-sdk-builder/LICENSE.txt +201 -0
- package/skills/apps-sdk-builder/SKILL.md +328 -0
- package/skills/apps-sdk-builder/agents/openai.yaml +13 -0
- package/skills/apps-sdk-builder/references/app-archetypes.md +132 -0
- package/skills/apps-sdk-builder/references/apps-sdk-docs-workflow.md +135 -0
- package/skills/apps-sdk-builder/references/interactive-state-sync-patterns.md +113 -0
- package/skills/apps-sdk-builder/references/repo-contract-and-validation.md +93 -0
- package/skills/apps-sdk-builder/references/search-fetch-standard.md +67 -0
- package/skills/apps-sdk-builder/references/upstream-example-workflow.md +79 -0
- package/skills/apps-sdk-builder/references/window-openai-patterns.md +79 -0
- package/skills/apps-sdk-builder/scripts/scaffold_node_ext_apps.mjs +606 -0
- package/skills/architecture-selector/SKILL.md +64 -0
- package/skills/backlog-planner/SKILL.md +68 -0
- package/skills/carplay-entitlement-checker/SKILL.md +82 -0
- package/skills/concept-discovery/SKILL.md +517 -0
- package/skills/concept-discovery/assets/sample-analysis.json +81 -0
- package/skills/concept-discovery/expected_outputs/sample-enum-dictionary.md +25 -0
- package/skills/concept-discovery/expected_outputs/sample-page-user-list.md +83 -0
- package/skills/concept-discovery/expected_outputs/sample-prd-readme.md +43 -0
- package/skills/concept-discovery/references/framework-patterns.md +228 -0
- package/skills/concept-discovery/references/prd-quality-checklist.md +65 -0
- package/skills/concept-discovery/scripts/codebase_analyzer.py +732 -0
- package/skills/concept-discovery/scripts/prd_scaffolder.py +435 -0
- package/skills/dast-zap/SKILL.md +453 -0
- package/skills/dast-zap/assets/.gitkeep +9 -0
- package/skills/dast-zap/assets/github_action.yml +207 -0
- package/skills/dast-zap/assets/gitlab_ci.yml +226 -0
- package/skills/dast-zap/assets/zap_automation.yaml +196 -0
- package/skills/dast-zap/assets/zap_context.xml +192 -0
- package/skills/dast-zap/references/EXAMPLE.md +40 -0
- package/skills/dast-zap/references/api_testing_guide.md +475 -0
- package/skills/dast-zap/references/authentication_guide.md +431 -0
- package/skills/dast-zap/references/false_positive_handling.md +427 -0
- package/skills/dast-zap/references/owasp_mapping.md +255 -0
- package/skills/dep-sbom-scan/SKILL.md +466 -0
- package/skills/deploy-cloudflare/SKILL.md +930 -0
- package/skills/deploy-docker/SKILL.md +55 -0
- package/skills/deploy-fly/SKILL.md +228 -0
- package/skills/deploy-k8s/SKILL.md +108 -0
- package/skills/deploy-k8s/assets/logo.png +0 -0
- package/skills/deploy-k8s/docs/README.md +29 -0
- package/skills/deploy-k8s/docs/SUMMARY.md +56 -0
- package/skills/deploy-k8s/docs/advanced/token-efficiency.md +61 -0
- package/skills/deploy-k8s/docs/architecture/multi-tenancy.md +96 -0
- package/skills/deploy-k8s/docs/architecture/storage-and-state.md +102 -0
- package/skills/deploy-k8s/docs/architecture/workload-patterns.md +87 -0
- package/skills/deploy-k8s/docs/book.json +16 -0
- package/skills/deploy-k8s/docs/community/changelog.md +34 -0
- package/skills/deploy-k8s/docs/community/contributing.md +67 -0
- package/skills/deploy-k8s/docs/core-concepts/failure-modes.md +153 -0
- package/skills/deploy-k8s/docs/core-concepts/philosophy.md +83 -0
- package/skills/deploy-k8s/docs/core-concepts/workflow.md +124 -0
- package/skills/deploy-k8s/docs/examples/bad-patterns.md +47 -0
- package/skills/deploy-k8s/docs/examples/do-dont-checklist.md +37 -0
- package/skills/deploy-k8s/docs/examples/good-patterns.md +49 -0
- package/skills/deploy-k8s/docs/failure-modes/api-drift.md +104 -0
- package/skills/deploy-k8s/docs/failure-modes/fragile-rollouts.md +99 -0
- package/skills/deploy-k8s/docs/failure-modes/insecure-workload-defaults.md +80 -0
- package/skills/deploy-k8s/docs/failure-modes/network-exposure.md +98 -0
- package/skills/deploy-k8s/docs/failure-modes/privilege-sprawl.md +91 -0
- package/skills/deploy-k8s/docs/failure-modes/resource-starvation.md +85 -0
- package/skills/deploy-k8s/docs/getting-started/installation.md +152 -0
- package/skills/deploy-k8s/docs/getting-started/quick-start.md +115 -0
- package/skills/deploy-k8s/docs/guides/helm-patterns.md +71 -0
- package/skills/deploy-k8s/docs/guides/kustomize-patterns.md +65 -0
- package/skills/deploy-k8s/docs/guides/observability.md +67 -0
- package/skills/deploy-k8s/docs/guides/security-hardening.md +59 -0
- package/skills/deploy-k8s/docs/guides/validation-and-policy.md +66 -0
- package/skills/deploy-k8s/docs/integrations/mcp-integration.md +52 -0
- package/skills/deploy-k8s/docs/package-lock.json +2892 -0
- package/skills/deploy-k8s/docs/package.json +13 -0
- package/skills/deploy-k8s/references/api-drift.md +298 -0
- package/skills/deploy-k8s/references/conditional/aks-patterns.md +70 -0
- package/skills/deploy-k8s/references/conditional/eks-patterns.md +79 -0
- package/skills/deploy-k8s/references/conditional/gitops-controllers.md +71 -0
- package/skills/deploy-k8s/references/conditional/gke-patterns.md +74 -0
- package/skills/deploy-k8s/references/conditional/observability-stacks.md +80 -0
- package/skills/deploy-k8s/references/conditional/openshift-patterns.md +67 -0
- package/skills/deploy-k8s/references/daemonset-operator-patterns.md +155 -0
- package/skills/deploy-k8s/references/deployment-patterns.md +146 -0
- package/skills/deploy-k8s/references/do-dont-patterns.md +87 -0
- package/skills/deploy-k8s/references/examples-bad.md +282 -0
- package/skills/deploy-k8s/references/examples-good.md +440 -0
- package/skills/deploy-k8s/references/fragile-rollouts.md +303 -0
- package/skills/deploy-k8s/references/helm-patterns.md +203 -0
- package/skills/deploy-k8s/references/insecure-workload-defaults.md +300 -0
- package/skills/deploy-k8s/references/job-patterns.md +120 -0
- package/skills/deploy-k8s/references/kustomize-patterns.md +239 -0
- package/skills/deploy-k8s/references/multi-tenancy.md +343 -0
- package/skills/deploy-k8s/references/network-exposure.md +481 -0
- package/skills/deploy-k8s/references/observability.md +302 -0
- package/skills/deploy-k8s/references/privilege-sprawl.md +273 -0
- package/skills/deploy-k8s/references/resource-starvation.md +374 -0
- package/skills/deploy-k8s/references/security-hardening.md +209 -0
- package/skills/deploy-k8s/references/stateful-patterns.md +130 -0
- package/skills/deploy-k8s/references/storage-and-state.md +330 -0
- package/skills/deploy-k8s/references/validation-and-policy.md +242 -0
- package/skills/deploy-railway/SKILL.md +235 -0
- package/skills/deploy-railway/references/analyze-db-mongo.md +84 -0
- package/skills/deploy-railway/references/analyze-db-mysql.md +254 -0
- package/skills/deploy-railway/references/analyze-db-postgres.md +479 -0
- package/skills/deploy-railway/references/analyze-db-redis.md +208 -0
- package/skills/deploy-railway/references/analyze-db.md +344 -0
- package/skills/deploy-railway/references/configure.md +309 -0
- package/skills/deploy-railway/references/deploy.md +195 -0
- package/skills/deploy-railway/references/operate.md +214 -0
- package/skills/deploy-railway/references/request.md +248 -0
- package/skills/deploy-railway/references/setup.md +312 -0
- package/skills/deploy-railway/scripts/analyze-mongo.py +1549 -0
- package/skills/deploy-railway/scripts/analyze-mysql.py +1195 -0
- package/skills/deploy-railway/scripts/analyze-postgres.py +3058 -0
- package/skills/deploy-railway/scripts/analyze-redis.py +1090 -0
- package/skills/deploy-railway/scripts/dal.py +671 -0
- package/skills/deploy-railway/scripts/enable-pg-stats.py +170 -0
- package/skills/deploy-railway/scripts/pg-extensions.py +370 -0
- package/skills/deploy-railway/scripts/railway-api.sh +52 -0
- package/skills/deploy-ssh/SKILL.md +91 -0
- package/skills/deploy-vercel/SKILL.md +304 -0
- package/skills/deploy-vercel/resources/deploy-codex.sh +301 -0
- package/skills/deploy-vercel/resources/deploy.sh +301 -0
- package/skills/docs-runbooks/SKILL.md +399 -0
- package/skills/drive-status-renderer/SKILL.md +62 -0
- package/skills/iac-scan/SKILL.md +680 -0
- package/skills/iac-scan/assets/.gitkeep +9 -0
- package/skills/iac-scan/assets/checkov_config.yaml +94 -0
- package/skills/iac-scan/assets/github_actions.yml +199 -0
- package/skills/iac-scan/assets/gitlab_ci.yml +218 -0
- package/skills/iac-scan/assets/pre_commit_config.yaml +92 -0
- package/skills/iac-scan/references/EXAMPLE.md +40 -0
- package/skills/iac-scan/references/compliance_mapping.md +237 -0
- package/skills/iac-scan/references/custom_policies.md +460 -0
- package/skills/iac-scan/references/suppression_guide.md +431 -0
- package/skills/incident-briefing/SKILL.md +66 -0
- package/skills/incident-triage/SKILL.md +481 -0
- package/{LICENSE → skills/mcp-builder/LICENSE.txt} +15 -14
- package/skills/mcp-builder/SKILL.md +244 -0
- package/skills/mcp-builder/reference/evaluation.md +602 -0
- package/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/skills/mcp-builder/reference/node_mcp_server.md +970 -0
- package/skills/mcp-builder/reference/python_mcp_server.md +719 -0
- package/skills/mcp-builder/scripts/connections.py +151 -0
- package/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/skills/mobile-pairing/SKILL.md +52 -0
- package/skills/ops-sre/SKILL.md +297 -0
- package/skills/playwright-qa/LICENSE.txt +201 -0
- package/skills/playwright-qa/NOTICE.txt +14 -0
- package/skills/playwright-qa/SKILL.md +156 -0
- package/skills/playwright-qa/agents/openai.yaml +6 -0
- package/skills/playwright-qa/assets/playwright-small.svg +3 -0
- package/skills/playwright-qa/assets/playwright.png +0 -0
- package/skills/playwright-qa/references/cli.md +116 -0
- package/skills/playwright-qa/references/workflows.md +95 -0
- package/skills/playwright-qa/scripts/playwright_cli.sh +25 -0
- package/skills/release-publish/SKILL.md +85 -0
- package/skills/repo-bootstrap/SKILL.md +92 -0
- package/skills/repo-bootstrap/assets/example-workflows/validate-agents.yml +89 -0
- package/skills/repo-bootstrap/assets/root-thin.md +141 -0
- package/skills/repo-bootstrap/assets/root-verbose.md +149 -0
- package/skills/repo-bootstrap/assets/scoped/backend-go.md +107 -0
- package/skills/repo-bootstrap/assets/scoped/backend-php.md +94 -0
- package/skills/repo-bootstrap/assets/scoped/backend-python.md +84 -0
- package/skills/repo-bootstrap/assets/scoped/backend-typescript.md +89 -0
- package/skills/repo-bootstrap/assets/scoped/claude-code-skill.md +101 -0
- package/skills/repo-bootstrap/assets/scoped/cli.md +83 -0
- package/skills/repo-bootstrap/assets/scoped/concourse.md +196 -0
- package/skills/repo-bootstrap/assets/scoped/ddev.md +68 -0
- package/skills/repo-bootstrap/assets/scoped/docker.md +160 -0
- package/skills/repo-bootstrap/assets/scoped/documentation.md +98 -0
- package/skills/repo-bootstrap/assets/scoped/examples.md +96 -0
- package/skills/repo-bootstrap/assets/scoped/frontend-typescript.md +88 -0
- package/skills/repo-bootstrap/assets/scoped/github-actions.md +174 -0
- package/skills/repo-bootstrap/assets/scoped/gitlab-ci.md +174 -0
- package/skills/repo-bootstrap/assets/scoped/oro-bundle.md +209 -0
- package/skills/repo-bootstrap/assets/scoped/oro-project.md +170 -0
- package/skills/repo-bootstrap/assets/scoped/python-modern.md +170 -0
- package/skills/repo-bootstrap/assets/scoped/resources.md +96 -0
- package/skills/repo-bootstrap/assets/scoped/skill-repo.md +139 -0
- package/skills/repo-bootstrap/assets/scoped/symfony.md +168 -0
- package/skills/repo-bootstrap/assets/scoped/testing.md +87 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-docs.md +103 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-extension.md +133 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-project.md +137 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-testing.md +80 -0
- package/skills/repo-bootstrap/checkpoints.yaml +279 -0
- package/skills/repo-bootstrap/evals/evals.json +385 -0
- package/skills/repo-bootstrap/references/ai-contribution-guidelines.md +63 -0
- package/skills/repo-bootstrap/references/ai-tool-compatibility.md +223 -0
- package/skills/repo-bootstrap/references/directory-coverage.md +82 -0
- package/skills/repo-bootstrap/references/examples/coding-agent-cli/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/coding-agent-cli/go.mod +3 -0
- package/skills/repo-bootstrap/references/examples/coding-agent-cli/scripts-AGENTS.md +389 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/.env.example +13 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/AGENTS.md +91 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/package.json +33 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/pnpm-lock.yaml +3 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/AGENTS.md +91 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/config.ts +28 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/controllers/userController.ts +74 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/index.ts +26 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/middleware/errorHandler.ts +45 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/middleware/requestLogger.ts +18 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/routes/health.ts +18 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/routes/users.ts +13 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/utils/errors.ts +40 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/utils/logger.ts +14 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/tsconfig.json +24 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/.env.example +19 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/AGENTS.md +92 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/pyproject.toml +88 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/AGENTS.md +85 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/__init__.py +3 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/config.py +49 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/main.py +66 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/__init__.py +13 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/item.py +43 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/user.py +40 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/__init__.py +5 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/health.py +20 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/items.py +61 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/users.py +55 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/__init__.py +6 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/item_service.py +77 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/user_service.py +69 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/uv.lock +4 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/.scopes +3 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/AGENTS.md +86 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/admin/package.json +20 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/admin/src/App.tsx +5 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/cmd/api/main.go +7 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/go.mod +2 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/main.go +7 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/.scopes +3 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/AGENTS.md +89 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/go.mod +2 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/AGENTS.md +90 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/package.json +17 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/App.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Button.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Footer.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Header.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Sidebar.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/main.go +7 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/package-lock.json +0 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/package.json +12 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/go.mod +3 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/internal-AGENTS.md +371 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/internal-web-AGENTS.md +448 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/.scopes +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/AGENTS.md +91 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/composer.json +8 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/package.json +15 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/pnpm-lock.yaml +0 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/src/Controller.php +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/AGENTS.md +92 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/package.json +26 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/App.tsx +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Button.tsx +10 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Footer.tsx +9 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Header.tsx +9 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/main.tsx +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/tsconfig.json +13 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/AGENTS.md +75 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/package.json +7 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/packages/web/package.json +11 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/packages/web/src/index.ts +11 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/pnpm-lock.yaml +42 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/pnpm-workspace.yaml +2 -0
- package/skills/repo-bootstrap/references/examples/simple-ldap-go/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/simple-ldap-go/examples-AGENTS.md +45 -0
- package/skills/repo-bootstrap/references/examples/simple-ldap-go/go.mod +3 -0
- package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/Classes-AGENTS.md +392 -0
- package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/composer.json +8 -0
- package/skills/repo-bootstrap/references/feedback-memory-schema.md +135 -0
- package/skills/repo-bootstrap/references/git-hooks-setup.md +79 -0
- package/skills/repo-bootstrap/references/output-structure.md +124 -0
- package/skills/repo-bootstrap/references/scripts-guide.md +175 -0
- package/skills/repo-bootstrap/references/verification-guide.md +137 -0
- package/skills/repo-bootstrap/scripts/analyze-git-history.sh +315 -0
- package/skills/repo-bootstrap/scripts/check-freshness.sh +230 -0
- package/skills/repo-bootstrap/scripts/detect-golden-samples.sh +161 -0
- package/skills/repo-bootstrap/scripts/detect-heuristics.sh +93 -0
- package/skills/repo-bootstrap/scripts/detect-project.sh +486 -0
- package/skills/repo-bootstrap/scripts/detect-scopes.sh +330 -0
- package/skills/repo-bootstrap/scripts/detect-utilities.sh +133 -0
- package/skills/repo-bootstrap/scripts/extract-adrs.sh +194 -0
- package/skills/repo-bootstrap/scripts/extract-agent-configs.sh +331 -0
- package/skills/repo-bootstrap/scripts/extract-architecture-rules.sh +522 -0
- package/skills/repo-bootstrap/scripts/extract-ci-commands.sh +385 -0
- package/skills/repo-bootstrap/scripts/extract-ci-rules.sh +384 -0
- package/skills/repo-bootstrap/scripts/extract-commands.sh +358 -0
- package/skills/repo-bootstrap/scripts/extract-documentation.sh +308 -0
- package/skills/repo-bootstrap/scripts/extract-github-rulesets.sh +96 -0
- package/skills/repo-bootstrap/scripts/extract-github-settings.sh +88 -0
- package/skills/repo-bootstrap/scripts/extract-ide-settings.sh +228 -0
- package/skills/repo-bootstrap/scripts/extract-platform-files.sh +290 -0
- package/skills/repo-bootstrap/scripts/extract-quality-configs.sh +442 -0
- package/skills/repo-bootstrap/scripts/generate-agents.sh +2424 -0
- package/skills/repo-bootstrap/scripts/generate-file-map.sh +153 -0
- package/skills/repo-bootstrap/scripts/lib/config-root.sh +211 -0
- package/skills/repo-bootstrap/scripts/lib/summary.sh +244 -0
- package/skills/repo-bootstrap/scripts/lib/template.sh +397 -0
- package/skills/repo-bootstrap/scripts/validate-structure.sh +324 -0
- package/skills/repo-bootstrap/scripts/verify-commands.sh +615 -0
- package/skills/repo-bootstrap/scripts/verify-content.sh +302 -0
- package/skills/schema-api-contracts/SKILL.md +56 -0
- package/skills/secret-hygiene/SKILL.md +511 -0
- package/skills/secret-hygiene/assets/.gitkeep +9 -0
- package/skills/secret-hygiene/assets/config-balanced.toml +81 -0
- package/skills/secret-hygiene/assets/config-custom.toml +178 -0
- package/skills/secret-hygiene/assets/config-strict.toml +48 -0
- package/skills/secret-hygiene/assets/github-action.yml +181 -0
- package/skills/secret-hygiene/assets/gitlab-ci.yml +257 -0
- package/skills/secret-hygiene/assets/precommit-config.yaml +70 -0
- package/skills/secret-hygiene/references/EXAMPLE.md +40 -0
- package/skills/secret-hygiene/references/compliance_mapping.md +538 -0
- package/skills/secret-hygiene/references/detection_rules.md +276 -0
- package/skills/secret-hygiene/references/false_positives.md +598 -0
- package/skills/secret-hygiene/references/remediation_guide.md +530 -0
- package/skills/stack-selector/SKILL.md +56 -0
- package/skills/telegram-control/SKILL.md +110 -0
- package/skills/telegram-control/references/architecture.md +184 -0
- package/skills/telegram-control/references/convex.md +173 -0
- package/skills/telegram-control/references/error_handling.md +212 -0
- package/skills/telegram-control/references/initial_setup.md +165 -0
- package/skills/telegram-control/references/telegram_api.md +156 -0
- package/skills/telegram-control/scripts/cancel_message.ts +53 -0
- package/skills/telegram-control/scripts/list_scheduled.ts +103 -0
- package/skills/telegram-control/scripts/logger.ts +121 -0
- package/skills/telegram-control/scripts/proxy-util.ts +11 -0
- package/skills/telegram-control/scripts/schedule_message.ts +216 -0
- package/skills/telegram-control/scripts/send_message.ts +115 -0
- package/skills/telegram-control/scripts/setup.ts +185 -0
- package/skills/telegram-control/scripts/types.ts +75 -0
- package/skills/telegram-control/scripts/view_history.ts +74 -0
- package/skills/test-strategy/SKILL.md +352 -0
- package/skills/threat-model/SKILL.md +303 -0
- package/skills/threat-model/examples/example-output.md +196 -0
- package/skills/threat-model/template.md +96 -0
- package/skills/ts-lint/SKILL.md +80 -0
- package/skills/ui-flow/SKILL.md +668 -0
- package/skills/voice-command-router/SKILL.md +51 -0
- package/skills/widget-live-activity-sync/SKILL.md +66 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Checkov Configuration File
|
|
2
|
+
# Place this file as .checkov.yaml in your project root
|
|
3
|
+
|
|
4
|
+
# Framework selection
|
|
5
|
+
framework:
|
|
6
|
+
- terraform
|
|
7
|
+
- kubernetes
|
|
8
|
+
- dockerfile
|
|
9
|
+
- helm
|
|
10
|
+
|
|
11
|
+
# Checks to skip globally
|
|
12
|
+
skip-check:
|
|
13
|
+
# Development environment exceptions
|
|
14
|
+
- CKV_AWS_17 # RDS backup retention (dev envs)
|
|
15
|
+
- CKV_AWS_8 # CloudWatch log encryption (cost optimization)
|
|
16
|
+
|
|
17
|
+
# Low severity informational checks
|
|
18
|
+
- CKV_AWS_50 # Lambda tracing
|
|
19
|
+
- CKV_K8S_35 # Prefer secrets as files
|
|
20
|
+
|
|
21
|
+
# Paths to exclude from scanning
|
|
22
|
+
skip-path:
|
|
23
|
+
- .terraform/
|
|
24
|
+
- .terragrunt-cache/
|
|
25
|
+
- node_modules/
|
|
26
|
+
- vendor/
|
|
27
|
+
- "**/.git"
|
|
28
|
+
- "**/test/"
|
|
29
|
+
- "**/examples/"
|
|
30
|
+
|
|
31
|
+
# Severity-based configuration
|
|
32
|
+
soft-fail-on:
|
|
33
|
+
- LOW
|
|
34
|
+
- MEDIUM
|
|
35
|
+
|
|
36
|
+
hard-fail-on:
|
|
37
|
+
- CRITICAL
|
|
38
|
+
- HIGH
|
|
39
|
+
|
|
40
|
+
# Compact output mode
|
|
41
|
+
compact: true
|
|
42
|
+
|
|
43
|
+
# Quiet mode (only show failures)
|
|
44
|
+
quiet: false
|
|
45
|
+
|
|
46
|
+
# Download external Terraform modules
|
|
47
|
+
download-external-modules: true
|
|
48
|
+
|
|
49
|
+
# Output configuration
|
|
50
|
+
output:
|
|
51
|
+
- cli
|
|
52
|
+
- json
|
|
53
|
+
- sarif
|
|
54
|
+
|
|
55
|
+
# Output file path
|
|
56
|
+
output-file-path: ./checkov-reports
|
|
57
|
+
|
|
58
|
+
# Repository identification
|
|
59
|
+
repo-id: my-infrastructure
|
|
60
|
+
branch: main
|
|
61
|
+
|
|
62
|
+
# External checks directory
|
|
63
|
+
external-checks-dir:
|
|
64
|
+
- ./custom_checks
|
|
65
|
+
|
|
66
|
+
# Baseline file for drift detection
|
|
67
|
+
# baseline: .checkov.baseline
|
|
68
|
+
|
|
69
|
+
# Enable secrets scanning
|
|
70
|
+
# framework:
|
|
71
|
+
# - secrets
|
|
72
|
+
|
|
73
|
+
# Prisma Cloud/Bridgecrew integration (optional)
|
|
74
|
+
# bc-api-key: ${PRISMA_API_KEY}
|
|
75
|
+
# prisma-api-url: https://api.prismacloud.io
|
|
76
|
+
|
|
77
|
+
# Skip specific resources by regex
|
|
78
|
+
# skip-resources-without-violations: true
|
|
79
|
+
|
|
80
|
+
# CKV check configuration
|
|
81
|
+
# check:
|
|
82
|
+
# - CIS_AWS
|
|
83
|
+
# - CIS_AZURE
|
|
84
|
+
# - CIS_KUBERNETES
|
|
85
|
+
|
|
86
|
+
# Enable/disable specific frameworks
|
|
87
|
+
# skip-framework:
|
|
88
|
+
# - ansible
|
|
89
|
+
# - github_actions
|
|
90
|
+
|
|
91
|
+
# Custom policies metadata filter
|
|
92
|
+
# policy-metadata-filter:
|
|
93
|
+
# severity: HIGH,CRITICAL
|
|
94
|
+
# category: IAM,ENCRYPTION
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# GitHub Actions Workflow for Checkov IaC Security Scanning
|
|
2
|
+
# Place this file in .github/workflows/checkov.yml
|
|
3
|
+
|
|
4
|
+
name: Checkov IaC Security Scan
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [main, develop]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [main]
|
|
11
|
+
paths:
|
|
12
|
+
- '**.tf'
|
|
13
|
+
- '**.yaml'
|
|
14
|
+
- '**.yml'
|
|
15
|
+
- '**.json'
|
|
16
|
+
schedule:
|
|
17
|
+
# Run weekly security scans on Sunday at 2 AM
|
|
18
|
+
- cron: '0 2 * * 0'
|
|
19
|
+
workflow_dispatch:
|
|
20
|
+
|
|
21
|
+
permissions:
|
|
22
|
+
contents: read
|
|
23
|
+
security-events: write
|
|
24
|
+
pull-requests: write
|
|
25
|
+
|
|
26
|
+
jobs:
|
|
27
|
+
checkov-terraform:
|
|
28
|
+
name: Terraform Security Scan
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
steps:
|
|
31
|
+
- name: Checkout code
|
|
32
|
+
uses: actions/checkout@v4
|
|
33
|
+
|
|
34
|
+
- name: Run Checkov on Terraform
|
|
35
|
+
uses: bridgecrewio/checkov-action@master
|
|
36
|
+
with:
|
|
37
|
+
directory: terraform/
|
|
38
|
+
framework: terraform
|
|
39
|
+
output_format: sarif
|
|
40
|
+
output_file_path: checkov-terraform.sarif
|
|
41
|
+
soft_fail: false
|
|
42
|
+
download_external_modules: true
|
|
43
|
+
|
|
44
|
+
- name: Upload SARIF Report
|
|
45
|
+
if: always()
|
|
46
|
+
uses: github/codeql-action/upload-sarif@v3
|
|
47
|
+
with:
|
|
48
|
+
sarif_file: checkov-terraform.sarif
|
|
49
|
+
category: terraform
|
|
50
|
+
|
|
51
|
+
checkov-kubernetes:
|
|
52
|
+
name: Kubernetes Security Scan
|
|
53
|
+
runs-on: ubuntu-latest
|
|
54
|
+
steps:
|
|
55
|
+
- name: Checkout code
|
|
56
|
+
uses: actions/checkout@v4
|
|
57
|
+
|
|
58
|
+
- name: Run Checkov on Kubernetes
|
|
59
|
+
uses: bridgecrewio/checkov-action@master
|
|
60
|
+
with:
|
|
61
|
+
directory: k8s/
|
|
62
|
+
framework: kubernetes
|
|
63
|
+
output_format: sarif
|
|
64
|
+
output_file_path: checkov-k8s.sarif
|
|
65
|
+
soft_fail: false
|
|
66
|
+
|
|
67
|
+
- name: Upload SARIF Report
|
|
68
|
+
if: always()
|
|
69
|
+
uses: github/codeql-action/upload-sarif@v3
|
|
70
|
+
with:
|
|
71
|
+
sarif_file: checkov-k8s.sarif
|
|
72
|
+
category: kubernetes
|
|
73
|
+
|
|
74
|
+
checkov-dockerfile:
|
|
75
|
+
name: Dockerfile Security Scan
|
|
76
|
+
runs-on: ubuntu-latest
|
|
77
|
+
steps:
|
|
78
|
+
- name: Checkout code
|
|
79
|
+
uses: actions/checkout@v4
|
|
80
|
+
|
|
81
|
+
- name: Run Checkov on Dockerfiles
|
|
82
|
+
uses: bridgecrewio/checkov-action@master
|
|
83
|
+
with:
|
|
84
|
+
directory: ./
|
|
85
|
+
framework: dockerfile
|
|
86
|
+
output_format: sarif
|
|
87
|
+
output_file_path: checkov-docker.sarif
|
|
88
|
+
soft_fail: false
|
|
89
|
+
|
|
90
|
+
- name: Upload SARIF Report
|
|
91
|
+
if: always()
|
|
92
|
+
uses: github/codeql-action/upload-sarif@v3
|
|
93
|
+
with:
|
|
94
|
+
sarif_file: checkov-docker.sarif
|
|
95
|
+
category: dockerfile
|
|
96
|
+
|
|
97
|
+
checkov-compliance:
|
|
98
|
+
name: Compliance Scan (CIS, PCI-DSS)
|
|
99
|
+
runs-on: ubuntu-latest
|
|
100
|
+
if: github.event_name == 'push' || github.event_name == 'schedule'
|
|
101
|
+
steps:
|
|
102
|
+
- name: Checkout code
|
|
103
|
+
uses: actions/checkout@v4
|
|
104
|
+
|
|
105
|
+
- name: Set up Python
|
|
106
|
+
uses: actions/setup-python@v5
|
|
107
|
+
with:
|
|
108
|
+
python-version: '3.11'
|
|
109
|
+
|
|
110
|
+
- name: Install Checkov
|
|
111
|
+
run: pip install checkov
|
|
112
|
+
|
|
113
|
+
- name: Run CIS Compliance Scan
|
|
114
|
+
run: |
|
|
115
|
+
checkov -d terraform/ \
|
|
116
|
+
--framework terraform \
|
|
117
|
+
--check CIS_AWS,CIS_AZURE \
|
|
118
|
+
-o json -o cli \
|
|
119
|
+
--output-file-path ./compliance-reports
|
|
120
|
+
|
|
121
|
+
- name: Upload Compliance Reports
|
|
122
|
+
uses: actions/upload-artifact@v4
|
|
123
|
+
if: always()
|
|
124
|
+
with:
|
|
125
|
+
name: compliance-reports
|
|
126
|
+
path: compliance-reports/
|
|
127
|
+
retention-days: 90
|
|
128
|
+
|
|
129
|
+
security-gate:
|
|
130
|
+
name: Security Gate Check
|
|
131
|
+
runs-on: ubuntu-latest
|
|
132
|
+
needs: [checkov-terraform, checkov-kubernetes]
|
|
133
|
+
if: always()
|
|
134
|
+
steps:
|
|
135
|
+
- name: Checkout code
|
|
136
|
+
uses: actions/checkout@v4
|
|
137
|
+
|
|
138
|
+
- name: Set up Python
|
|
139
|
+
uses: actions/setup-python@v5
|
|
140
|
+
with:
|
|
141
|
+
python-version: '3.11'
|
|
142
|
+
|
|
143
|
+
- name: Install Dependencies
|
|
144
|
+
run: pip install checkov
|
|
145
|
+
|
|
146
|
+
- name: Run Checkov with Threshold
|
|
147
|
+
run: |
|
|
148
|
+
# Fail on CRITICAL and HIGH severity issues
|
|
149
|
+
checkov -d terraform/ \
|
|
150
|
+
--framework terraform \
|
|
151
|
+
--hard-fail-on CRITICAL,HIGH \
|
|
152
|
+
-o json --output-file-path ./gate-report || EXIT_CODE=$?
|
|
153
|
+
|
|
154
|
+
# Parse results
|
|
155
|
+
if [ -f "gate-report/results_json.json" ]; then
|
|
156
|
+
CRITICAL=$(jq '[.results.failed_checks[] | select(.severity == "CRITICAL")] | length' gate-report/results_json.json)
|
|
157
|
+
HIGH=$(jq '[.results.failed_checks[] | select(.severity == "HIGH")] | length' gate-report/results_json.json)
|
|
158
|
+
|
|
159
|
+
echo "Critical findings: $CRITICAL"
|
|
160
|
+
echo "High findings: $HIGH"
|
|
161
|
+
|
|
162
|
+
if [ "$CRITICAL" -gt 0 ] || [ "$HIGH" -gt 0 ]; then
|
|
163
|
+
echo "❌ Security gate failed"
|
|
164
|
+
exit 1
|
|
165
|
+
fi
|
|
166
|
+
fi
|
|
167
|
+
|
|
168
|
+
echo "✅ Security gate passed"
|
|
169
|
+
|
|
170
|
+
- name: Comment on PR
|
|
171
|
+
if: github.event_name == 'pull_request'
|
|
172
|
+
uses: actions/github-script@v7
|
|
173
|
+
with:
|
|
174
|
+
script: |
|
|
175
|
+
const fs = require('fs');
|
|
176
|
+
const report = JSON.parse(fs.readFileSync('gate-report/results_json.json', 'utf8'));
|
|
177
|
+
|
|
178
|
+
const summary = report.summary || {};
|
|
179
|
+
const passed = summary.passed || 0;
|
|
180
|
+
const failed = summary.failed || 0;
|
|
181
|
+
const skipped = summary.skipped || 0;
|
|
182
|
+
|
|
183
|
+
const body = `## Checkov IaC Security Scan Results
|
|
184
|
+
|
|
185
|
+
| Status | Count |
|
|
186
|
+
|--------|-------|
|
|
187
|
+
| ✅ Passed | ${passed} |
|
|
188
|
+
| ❌ Failed | ${failed} |
|
|
189
|
+
| ⏭️ Skipped | ${skipped} |
|
|
190
|
+
|
|
191
|
+
${failed > 0 ? '⚠️ Please review and fix the security findings before merging.' : '✅ No security issues detected!'}
|
|
192
|
+
`;
|
|
193
|
+
|
|
194
|
+
github.rest.issues.createComment({
|
|
195
|
+
owner: context.repo.owner,
|
|
196
|
+
repo: context.repo.repo,
|
|
197
|
+
issue_number: context.issue.number,
|
|
198
|
+
body: body
|
|
199
|
+
});
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# GitLab CI/CD Pipeline for Checkov IaC Security Scanning
|
|
2
|
+
# Add this to your .gitlab-ci.yml file
|
|
3
|
+
|
|
4
|
+
stages:
|
|
5
|
+
- security
|
|
6
|
+
- compliance
|
|
7
|
+
- report
|
|
8
|
+
|
|
9
|
+
variables:
|
|
10
|
+
CHECKOV_IMAGE: "bridgecrew/checkov:latest"
|
|
11
|
+
REPORTS_DIR: "checkov-reports"
|
|
12
|
+
|
|
13
|
+
# Terraform Security Scan
|
|
14
|
+
checkov_terraform:
|
|
15
|
+
stage: security
|
|
16
|
+
image: $CHECKOV_IMAGE
|
|
17
|
+
script:
|
|
18
|
+
- mkdir -p $REPORTS_DIR
|
|
19
|
+
- |
|
|
20
|
+
checkov -d terraform/ \
|
|
21
|
+
--framework terraform \
|
|
22
|
+
-o json -o junitxml -o sarif \
|
|
23
|
+
--output-file-path $REPORTS_DIR \
|
|
24
|
+
--compact || EXIT_CODE=$?
|
|
25
|
+
- echo "Exit code: ${EXIT_CODE:-0}"
|
|
26
|
+
artifacts:
|
|
27
|
+
reports:
|
|
28
|
+
junit: $REPORTS_DIR/results_junitxml.xml
|
|
29
|
+
sast: $REPORTS_DIR/results_sarif.sarif
|
|
30
|
+
paths:
|
|
31
|
+
- $REPORTS_DIR/
|
|
32
|
+
when: always
|
|
33
|
+
expire_in: 30 days
|
|
34
|
+
only:
|
|
35
|
+
changes:
|
|
36
|
+
- terraform/**/*
|
|
37
|
+
- "*.tf"
|
|
38
|
+
tags:
|
|
39
|
+
- docker
|
|
40
|
+
|
|
41
|
+
# Kubernetes Security Scan
|
|
42
|
+
checkov_kubernetes:
|
|
43
|
+
stage: security
|
|
44
|
+
image: $CHECKOV_IMAGE
|
|
45
|
+
script:
|
|
46
|
+
- mkdir -p $REPORTS_DIR
|
|
47
|
+
- |
|
|
48
|
+
checkov -d k8s/ \
|
|
49
|
+
--framework kubernetes \
|
|
50
|
+
-o json -o junitxml \
|
|
51
|
+
--output-file-path $REPORTS_DIR \
|
|
52
|
+
--compact
|
|
53
|
+
artifacts:
|
|
54
|
+
reports:
|
|
55
|
+
junit: $REPORTS_DIR/results_junitxml.xml
|
|
56
|
+
paths:
|
|
57
|
+
- $REPORTS_DIR/
|
|
58
|
+
when: always
|
|
59
|
+
expire_in: 30 days
|
|
60
|
+
only:
|
|
61
|
+
changes:
|
|
62
|
+
- k8s/**/*
|
|
63
|
+
- "*.yaml"
|
|
64
|
+
- "*.yml"
|
|
65
|
+
tags:
|
|
66
|
+
- docker
|
|
67
|
+
|
|
68
|
+
# CloudFormation Security Scan
|
|
69
|
+
checkov_cloudformation:
|
|
70
|
+
stage: security
|
|
71
|
+
image: $CHECKOV_IMAGE
|
|
72
|
+
script:
|
|
73
|
+
- mkdir -p $REPORTS_DIR
|
|
74
|
+
- |
|
|
75
|
+
checkov -d cloudformation/ \
|
|
76
|
+
--framework cloudformation \
|
|
77
|
+
-o json -o junitxml \
|
|
78
|
+
--output-file-path $REPORTS_DIR \
|
|
79
|
+
--compact
|
|
80
|
+
artifacts:
|
|
81
|
+
reports:
|
|
82
|
+
junit: $REPORTS_DIR/results_junitxml.xml
|
|
83
|
+
paths:
|
|
84
|
+
- $REPORTS_DIR/
|
|
85
|
+
when: always
|
|
86
|
+
expire_in: 30 days
|
|
87
|
+
only:
|
|
88
|
+
changes:
|
|
89
|
+
- cloudformation/**/*
|
|
90
|
+
allow_failure: true
|
|
91
|
+
tags:
|
|
92
|
+
- docker
|
|
93
|
+
|
|
94
|
+
# Compliance Scan (CIS Benchmarks)
|
|
95
|
+
checkov_compliance:
|
|
96
|
+
stage: compliance
|
|
97
|
+
image: $CHECKOV_IMAGE
|
|
98
|
+
script:
|
|
99
|
+
- mkdir -p $REPORTS_DIR/compliance
|
|
100
|
+
- |
|
|
101
|
+
# CIS AWS Benchmark
|
|
102
|
+
checkov -d terraform/ \
|
|
103
|
+
--framework terraform \
|
|
104
|
+
--check CIS_AWS \
|
|
105
|
+
-o json -o cli \
|
|
106
|
+
--output-file-path $REPORTS_DIR/compliance \
|
|
107
|
+
--compact || true
|
|
108
|
+
|
|
109
|
+
# Parse results
|
|
110
|
+
if [ -f "$REPORTS_DIR/compliance/results_json.json" ]; then
|
|
111
|
+
FAILED=$(jq '.summary.failed' $REPORTS_DIR/compliance/results_json.json)
|
|
112
|
+
echo "CIS compliance failures: $FAILED"
|
|
113
|
+
fi
|
|
114
|
+
artifacts:
|
|
115
|
+
paths:
|
|
116
|
+
- $REPORTS_DIR/compliance/
|
|
117
|
+
when: always
|
|
118
|
+
expire_in: 90 days
|
|
119
|
+
only:
|
|
120
|
+
- main
|
|
121
|
+
- develop
|
|
122
|
+
tags:
|
|
123
|
+
- docker
|
|
124
|
+
|
|
125
|
+
# Security Gate - Fail on Critical/High
|
|
126
|
+
security_gate:
|
|
127
|
+
stage: compliance
|
|
128
|
+
image: $CHECKOV_IMAGE
|
|
129
|
+
script:
|
|
130
|
+
- mkdir -p $REPORTS_DIR/gate
|
|
131
|
+
- |
|
|
132
|
+
# Run scan with severity filtering
|
|
133
|
+
checkov -d terraform/ \
|
|
134
|
+
--framework terraform \
|
|
135
|
+
--hard-fail-on CRITICAL,HIGH \
|
|
136
|
+
-o json \
|
|
137
|
+
--output-file-path $REPORTS_DIR/gate \
|
|
138
|
+
--compact || EXIT_CODE=$?
|
|
139
|
+
|
|
140
|
+
# Check results
|
|
141
|
+
if [ -f "$REPORTS_DIR/gate/results_json.json" ]; then
|
|
142
|
+
CRITICAL=$(jq '[.results.failed_checks[] | select(.severity == "CRITICAL")] | length' $REPORTS_DIR/gate/results_json.json)
|
|
143
|
+
HIGH=$(jq '[.results.failed_checks[] | select(.severity == "HIGH")] | length' $REPORTS_DIR/gate/results_json.json)
|
|
144
|
+
|
|
145
|
+
echo "Critical findings: $CRITICAL"
|
|
146
|
+
echo "High findings: $HIGH"
|
|
147
|
+
|
|
148
|
+
if [ "$CRITICAL" -gt 0 ] || [ "$HIGH" -gt 0 ]; then
|
|
149
|
+
echo "❌ Security gate failed: Critical or High severity issues found"
|
|
150
|
+
exit 1
|
|
151
|
+
fi
|
|
152
|
+
|
|
153
|
+
echo "✅ Security gate passed"
|
|
154
|
+
fi
|
|
155
|
+
|
|
156
|
+
exit ${EXIT_CODE:-0}
|
|
157
|
+
artifacts:
|
|
158
|
+
paths:
|
|
159
|
+
- $REPORTS_DIR/gate/
|
|
160
|
+
when: always
|
|
161
|
+
expire_in: 30 days
|
|
162
|
+
dependencies:
|
|
163
|
+
- checkov_terraform
|
|
164
|
+
- checkov_kubernetes
|
|
165
|
+
only:
|
|
166
|
+
- merge_requests
|
|
167
|
+
- main
|
|
168
|
+
allow_failure: false
|
|
169
|
+
tags:
|
|
170
|
+
- docker
|
|
171
|
+
|
|
172
|
+
# Generate Summary Report
|
|
173
|
+
generate_report:
|
|
174
|
+
stage: report
|
|
175
|
+
image: alpine:latest
|
|
176
|
+
before_script:
|
|
177
|
+
- apk add --no-cache jq curl
|
|
178
|
+
script:
|
|
179
|
+
- |
|
|
180
|
+
# Generate markdown summary
|
|
181
|
+
cat > $REPORTS_DIR/summary.md <<EOF
|
|
182
|
+
# Checkov IaC Security Scan Summary
|
|
183
|
+
|
|
184
|
+
**Pipeline:** $CI_PIPELINE_ID
|
|
185
|
+
**Branch:** $CI_COMMIT_REF_NAME
|
|
186
|
+
**Commit:** $CI_COMMIT_SHORT_SHA
|
|
187
|
+
**Date:** $(date)
|
|
188
|
+
|
|
189
|
+
## Scan Results
|
|
190
|
+
|
|
191
|
+
EOF
|
|
192
|
+
|
|
193
|
+
# Parse Terraform scan results
|
|
194
|
+
if [ -f "$REPORTS_DIR/results_json.json" ]; then
|
|
195
|
+
echo "### Terraform Scan" >> $REPORTS_DIR/summary.md
|
|
196
|
+
echo "" >> $REPORTS_DIR/summary.md
|
|
197
|
+
echo "| Metric | Count |" >> $REPORTS_DIR/summary.md
|
|
198
|
+
echo "|--------|-------|" >> $REPORTS_DIR/summary.md
|
|
199
|
+
jq -r '.summary | "| Passed | \(.passed) |\n| Failed | \(.failed) |\n| Skipped | \(.skipped) |"' \
|
|
200
|
+
$REPORTS_DIR/results_json.json >> $REPORTS_DIR/summary.md
|
|
201
|
+
echo "" >> $REPORTS_DIR/summary.md
|
|
202
|
+
fi
|
|
203
|
+
|
|
204
|
+
cat $REPORTS_DIR/summary.md
|
|
205
|
+
artifacts:
|
|
206
|
+
paths:
|
|
207
|
+
- $REPORTS_DIR/summary.md
|
|
208
|
+
when: always
|
|
209
|
+
expire_in: 90 days
|
|
210
|
+
dependencies:
|
|
211
|
+
- checkov_terraform
|
|
212
|
+
- checkov_kubernetes
|
|
213
|
+
only:
|
|
214
|
+
- merge_requests
|
|
215
|
+
- main
|
|
216
|
+
- develop
|
|
217
|
+
tags:
|
|
218
|
+
- docker
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Pre-commit Hook Configuration for Checkov
|
|
2
|
+
# Place this file as .pre-commit-config.yaml in your project root
|
|
3
|
+
#
|
|
4
|
+
# Install: pip install pre-commit
|
|
5
|
+
# Setup: pre-commit install
|
|
6
|
+
|
|
7
|
+
repos:
|
|
8
|
+
# Checkov IaC Security Scanning
|
|
9
|
+
- repo: https://github.com/bridgecrewio/checkov
|
|
10
|
+
rev: 2.5.0
|
|
11
|
+
hooks:
|
|
12
|
+
- id: checkov
|
|
13
|
+
name: Checkov IaC Security Scan
|
|
14
|
+
args:
|
|
15
|
+
- --soft-fail # Don't block commits (warning only)
|
|
16
|
+
- --compact # Concise output
|
|
17
|
+
- --framework=terraform # Scan Terraform files
|
|
18
|
+
- --framework=kubernetes # Scan Kubernetes files
|
|
19
|
+
- --framework=dockerfile # Scan Dockerfiles
|
|
20
|
+
files: \.(tf|yaml|yml|json|Dockerfile)$
|
|
21
|
+
exclude: |
|
|
22
|
+
(?x)^(
|
|
23
|
+
.terraform/|
|
|
24
|
+
.terragrunt-cache/|
|
|
25
|
+
vendor/|
|
|
26
|
+
node_modules/
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
# Strict mode (fail on Critical/High) - optional
|
|
30
|
+
- repo: https://github.com/bridgecrewio/checkov
|
|
31
|
+
rev: 2.5.0
|
|
32
|
+
hooks:
|
|
33
|
+
- id: checkov
|
|
34
|
+
name: Checkov Strict Mode (Critical/High)
|
|
35
|
+
args:
|
|
36
|
+
- --hard-fail-on=CRITICAL,HIGH
|
|
37
|
+
- --compact
|
|
38
|
+
- --quiet
|
|
39
|
+
files: \.(tf|yaml|yml)$
|
|
40
|
+
exclude: |
|
|
41
|
+
(?x)^(
|
|
42
|
+
.terraform/|
|
|
43
|
+
test/|
|
|
44
|
+
examples/
|
|
45
|
+
)
|
|
46
|
+
# Only run on specific branches
|
|
47
|
+
stages: [push]
|
|
48
|
+
|
|
49
|
+
# Terraform-specific scanning with external modules
|
|
50
|
+
- repo: https://github.com/bridgecrewio/checkov
|
|
51
|
+
rev: 2.5.0
|
|
52
|
+
hooks:
|
|
53
|
+
- id: checkov
|
|
54
|
+
name: Checkov Terraform (with external modules)
|
|
55
|
+
args:
|
|
56
|
+
- --download-external-modules=true
|
|
57
|
+
- --framework=terraform
|
|
58
|
+
- --soft-fail
|
|
59
|
+
files: \.tf$
|
|
60
|
+
exclude: .terraform/
|
|
61
|
+
|
|
62
|
+
# Additional code quality hooks
|
|
63
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
64
|
+
rev: v4.5.0
|
|
65
|
+
hooks:
|
|
66
|
+
- id: trailing-whitespace
|
|
67
|
+
- id: end-of-file-fixer
|
|
68
|
+
- id: check-yaml
|
|
69
|
+
args: [--allow-multiple-documents]
|
|
70
|
+
- id: check-json
|
|
71
|
+
- id: check-merge-conflict
|
|
72
|
+
- id: detect-private-key
|
|
73
|
+
name: Detect Private Keys (Secrets)
|
|
74
|
+
|
|
75
|
+
# Terraform formatting
|
|
76
|
+
- repo: https://github.com/antonbabenko/pre-commit-terraform
|
|
77
|
+
rev: v1.86.0
|
|
78
|
+
hooks:
|
|
79
|
+
- id: terraform_fmt
|
|
80
|
+
- id: terraform_validate
|
|
81
|
+
- id: terraform_docs
|
|
82
|
+
args:
|
|
83
|
+
- --hook-config=--add-to-existing-file=true
|
|
84
|
+
- --hook-config=--create-file-if-not-exist=true
|
|
85
|
+
|
|
86
|
+
# YAML linting
|
|
87
|
+
- repo: https://github.com/adrienverge/yamllint
|
|
88
|
+
rev: v1.33.0
|
|
89
|
+
hooks:
|
|
90
|
+
- id: yamllint
|
|
91
|
+
args: [-c=.yamllint.yaml]
|
|
92
|
+
files: \.(yaml|yml)$
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Reference Document Template
|
|
2
|
+
|
|
3
|
+
This file contains detailed reference material that Claude should load only when needed.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Section 1](#section-1)
|
|
8
|
+
- [Section 2](#section-2)
|
|
9
|
+
- [Security Standards](#security-standards)
|
|
10
|
+
|
|
11
|
+
## Section 1
|
|
12
|
+
|
|
13
|
+
Detailed information, schemas, or examples that are too large for SKILL.md.
|
|
14
|
+
|
|
15
|
+
## Section 2
|
|
16
|
+
|
|
17
|
+
Additional reference material.
|
|
18
|
+
|
|
19
|
+
## Security Standards
|
|
20
|
+
|
|
21
|
+
### OWASP Top 10
|
|
22
|
+
|
|
23
|
+
Reference relevant OWASP categories:
|
|
24
|
+
- A01: Broken Access Control
|
|
25
|
+
- A02: Cryptographic Failures
|
|
26
|
+
- etc.
|
|
27
|
+
|
|
28
|
+
### CWE Mappings
|
|
29
|
+
|
|
30
|
+
Map to relevant Common Weakness Enumeration categories:
|
|
31
|
+
- CWE-79: Cross-site Scripting
|
|
32
|
+
- CWE-89: SQL Injection
|
|
33
|
+
- etc.
|
|
34
|
+
|
|
35
|
+
### MITRE ATT&CK
|
|
36
|
+
|
|
37
|
+
Reference relevant tactics and techniques if applicable:
|
|
38
|
+
- TA0001: Initial Access
|
|
39
|
+
- T1190: Exploit Public-Facing Application
|
|
40
|
+
- etc.
|