Skip to content

Chore/add GitHub config#11

Merged
louisdevzz merged 3 commits into
mainfrom
chore/add-github-config
Mar 4, 2026
Merged

Chore/add GitHub config#11
louisdevzz merged 3 commits into
mainfrom
chore/add-github-config

Conversation

@louisdevzz
Copy link
Copy Markdown
Collaborator

@louisdevzz louisdevzz commented Mar 4, 2026

Summary by CodeRabbit

  • New Features

    • Added automated secret detection in commits via pre-commit hooks.
    • Implemented comprehensive CI/CD pipeline with quality gates, testing, and multi-target builds.
    • Introduced automated release process with security scanning and artifact validation.
    • Added PR and issue templates with structured forms and guided workflows.
    • Implemented automated PR labeling, contributor tier tracking, and stale item management.
    • Added provider connectivity probes and reproducible build verification.
  • Chores

    • Added repository governance configuration (CODEOWNERS, release policies, security policies).
    • Added GitHub Actions helper scripts and workflow documentation.

- Add pre-commit and pre-push git hooks

- Add GitHub workflows, issue templates, and CI/CD configs

- Add CODEOWNERS with louisdevzz as owner and reviewer

- Add security, release, and connectivity policies
- Add pre-commit and pre-push git hooks

- Add GitHub workflows, issue templates, and CI/CD configs

- Add CODEOWNERS with louisdevzz as owner and reviewer

- Add security, release, and connectivity policies
@louisdevzz louisdevzz merged commit 47721c6 into main Mar 4, 2026
1 of 19 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 4, 2026

Caution

Review failed

The pull request is closed.

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: Expected boolean, received object at "reviews.poem"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3fb2079c-e2ac-4391-a9c8-cad2419363d3

📥 Commits

Reviewing files that changed from the base of the PR and between ed04a01 and ecea4f3.

📒 Files selected for processing (66)
  • .githooks/pre-commit
  • .githooks/pre-push
  • .github/CODEOWNERS
  • .github/ISSUE_TEMPLATE/bug_report.yml
  • .github/ISSUE_TEMPLATE/config.yml
  • .github/ISSUE_TEMPLATE/feature_request.yml
  • .github/actionlint.yaml
  • .github/codeql/codeql-config.yml
  • .github/connectivity/probe-contract.json
  • .github/connectivity/providers.json
  • .github/dependabot.yml
  • .github/label-policy.json
  • .github/labeler.yml
  • .github/pull_request_template.md
  • .github/release/canary-policy.json
  • .github/release/docs-deploy-policy.json
  • .github/release/ghcr-tag-policy.json
  • .github/release/ghcr-vulnerability-policy.json
  • .github/release/nightly-owner-routing.json
  • .github/release/prerelease-stage-gates.json
  • .github/release/release-artifact-contract.json
  • .github/security/deny-ignore-governance.json
  • .github/security/gitleaks-allowlist-governance.json
  • .github/security/unsafe-audit-governance.json
  • .github/workflows/README.md
  • .github/workflows/ci-build-fast.yml
  • .github/workflows/ci-canary-gate.yml
  • .github/workflows/ci-change-audit.yml
  • .github/workflows/ci-provider-connectivity.yml
  • .github/workflows/ci-reproducible-build.yml
  • .github/workflows/ci-rollback.yml
  • .github/workflows/ci-run.yml
  • .github/workflows/ci-supply-chain-provenance.yml
  • .github/workflows/deploy-web.yml
  • .github/workflows/docs-deploy.yml
  • .github/workflows/feature-matrix.yml
  • .github/workflows/main-branch-flow.md
  • .github/workflows/nightly-all-features.yml
  • .github/workflows/pages-deploy.yml
  • .github/workflows/pr-auto-response.yml
  • .github/workflows/pr-check-stale.yml
  • .github/workflows/pr-check-status.yml
  • .github/workflows/pr-intake-checks.yml
  • .github/workflows/pr-label-policy-check.yml
  • .github/workflows/pr-labeler.yml
  • .github/workflows/pub-docker-img.yml
  • .github/workflows/pub-prerelease.yml
  • .github/workflows/pub-release.yml
  • .github/workflows/scripts/ci_human_review_guard.js
  • .github/workflows/scripts/ci_license_file_owner_guard.js
  • .github/workflows/scripts/ci_workflow_owner_approval.js
  • .github/workflows/scripts/lint_feedback.js
  • .github/workflows/scripts/pr_auto_response_contributor_tier.js
  • .github/workflows/scripts/pr_auto_response_labeled_routes.js
  • .github/workflows/scripts/pr_check_status_nudge.js
  • .github/workflows/scripts/pr_intake_checks.js
  • .github/workflows/scripts/pr_labeler.js
  • .github/workflows/scripts/test_benchmarks_pr_comment.js
  • .github/workflows/sec-audit.yml
  • .github/workflows/sec-codeql.yml
  • .github/workflows/sec-vorpal-reviewdog.yml
  • .github/workflows/sync-contributors.yml
  • .github/workflows/test-benchmarks.yml
  • .github/workflows/test-e2e.yml
  • .github/workflows/test-fuzz.yml
  • .github/workflows/workflow-sanity.yml

📝 Walkthrough

Walkthrough

This pull request introduces comprehensive CI/CD infrastructure for ZeroClaw, including GitHub Actions workflows for continuous integration, testing, release management, and security audits; Git hooks for pre-commit secret scanning and pre-push quality gates; configuration files for policies, templates, and tool settings; and helper scripts for automated PR management and workflow orchestration. The infrastructure spans build automation, testing pipelines, release artifact management, security scanning, and contributor/change governance.

Changes

Cohort / File(s) Summary
Git Hooks
.githooks/pre-commit, .githooks/pre-push
Pre-commit hook runs gitleaks secret scanning on staged changes; pre-push hook orchestrates Rust quality gates, delta linting, docs checks, and test execution before pushes.
GitHub Configuration & Ownership
.github/CODEOWNERS, .github/ISSUE_TEMPLATE/bug_report.yml, .github/ISSUE_TEMPLATE/feature_request.yml, .github/ISSUE_TEMPLATE/config.yml, .github/pull_request_template.md
Defines code ownership policies, structured issue templates for bug reports and feature requests with validation rules, issue template configuration disabling blank issues, and comprehensive PR template with sections for metadata, validation, security, and rollback planning.
Tool Configurations
.github/actionlint.yaml, .github/codeql/codeql-config.yml, .github/dependabot.yml, .github/labeler.yml, .github/label-policy.json
Actionlint self-hosted runner labels, CodeQL configuration excluding test directory, Dependabot setup for cargo/actions/docker with daily updates, file-change-based labeling across project modules, and contributor tier policy with merged PR thresholds.
Release & Security Policies
.github/release/canary-policy.json, .github/release/docs-deploy-policy.json, .github/release/ghcr-tag-policy.json, .github/release/ghcr-vulnerability-policy.json, .github/release/nightly-owner-routing.json, .github/release/prerelease-stage-gates.json, .github/release/release-artifact-contract.json
Canary deployment policy with cohort phases and observability thresholds, docs deployment controls with manual dispatch and rollback settings, GHCR tag formatting and immutability rules, vulnerability severity blocking policies, nightly release owner routing, prerelease stage gating with required checks, and release artifact/SBOM/notice contracts.
Security Governance
.github/security/deny-ignore-governance.json, .github/security/gitleaks-allowlist-governance.json, .github/security/unsafe-audit-governance.json
Transitive dependency advisories with expiration tracking, gitleaks allowlist patterns and regex exceptions with ownership metadata, and unsafe code audit governance configuration.
Connectivity & LLM Provider Management
.github/connectivity/probe-contract.json, .github/connectivity/providers.json
LLM provider connectivity probe contract with consecutive failure escalation, list of required/optional providers with timeout and retry configuration, and global timeout settings with provider URLs and criticality flags.
Core CI Workflows
.github/workflows/ci-build-fast.yml, .github/workflows/ci-change-audit.yml, .github/workflows/ci-canary-gate.yml, .github/workflows/ci-provider-connectivity.yml, .github/workflows/ci-reproducible-build.yml, .github/workflows/ci-rollback.yml, .github/workflows/ci-run.yml
Fast CI build on Rust changes with change detection, pull request change auditing with violation enforcement, canary deployment planning and execution with policy evaluation, LLM provider connectivity probing with audit events, reproducible build verification with drift detection, rollback planning and execution workflows, and comprehensive multi-path CI pipeline with quality gates, approval requirements, and conditional execution based on change scope.
Testing Workflows
.github/workflows/test-benchmarks.yml, .github/workflows/test-e2e.yml, .github/workflows/test-fuzz.yml
Weekly Criterion benchmarks with PR summary posting, integration/E2E tests on dev/main pushes, and fuzz testing with configurable duration and multiple fuzz targets.
Release & Publishing Workflows
.github/workflows/pub-docker-img.yml, .github/workflows/pub-prerelease.yml, .github/workflows/pub-release.yml, .github/workflows/ci-supply-chain-provenance.yml
Docker image publishing with smoke testing, contract validation, and Trivy vulnerability scanning; prerelease guard validation with artifact building and GitHub pre-release creation; comprehensive multi-target release orchestration with Android NDK setup, artifact verification, SBOM generation, cosign signing, and GitHub Release creation; supply-chain provenance generation and signing.
Security Audit Workflows
.github/workflows/sec-audit.yml, .github/workflows/sec-codeql.yml, .github/workflows/sec-vorpal-reviewdog.yml
Multi-stage security audit with dependencies, licenses, supply-chain hygiene, secrets, SBOMs, unsafe code debt, and security regression testing; CodeQL analysis with custom configuration; Vorpal static analysis with reviewdog integration and scope/filter controls.
PR Automation & Maintenance
.github/workflows/pr-auto-response.yml, .github/workflows/pr-check-stale.yml, .github/workflows/pr-check-status.yml, .github/workflows/pr-intake-checks.yml, .github/workflows/pr-label-policy-check.yml, .github/workflows/pr-labeler.yml
Automated contributor tier labeling and first-interaction greetings, stale PR/issue detection and closure, PR status nudges for behind/failing state, PR intake validation for required sections and formatting issues, contributor tier label policy consistency checks, and comprehensive PR labeling with size/risk/module/path inference and contributor tier assignment.
Documentation & Pages Deployment
.github/workflows/docs-deploy.yml, .github/workflows/deploy-web.yml, .github/workflows/pages-deploy.yml
Docs deployment with quality gates, preview generation, and GitHub Pages publishing; web frontend building and GitHub Pages deployment; site build and Pages deployment from main branch.
Feature & Nightly Testing
.github/workflows/feature-matrix.yml, .github/workflows/nightly-all-features.yml
Comprehensive feature matrix with multiple lanes, compile and nightly profiles, per-lane retry logic, and historical nightly tracking; daily nightly builds across feature lanes with libudev handling and aggregated reporting.
Maintenance & Documentation
.github/workflows/sync-contributors.yml, .github/workflows/workflow-sanity.yml, .github/workflows/main-branch-flow.md, .github/workflows/README.md
Automated contributor list synchronization to NOTICE file with draft PR creation, workflow YAML sanity checks (tabs and actionlint validation), comprehensive main branch delivery flow documentation with event triggers and step-by-step sequences, and workflow directory conventions documentation.
GitHub Actions Helper Scripts
.github/workflows/scripts/ci_human_review_guard.js, .github/workflows/scripts/ci_license_file_owner_guard.js, .github/workflows/scripts/ci_workflow_owner_approval.js, .github/workflows/scripts/lint_feedback.js
Human approval enforcement filtering bot accounts, license file editor allowlist validation, workflow file change approval requirement with allowlist enforcement, and lint failure feedback posting as sticky PR comments.
PR Management Scripts
.github/workflows/scripts/pr_auto_response_contributor_tier.js, .github/workflows/scripts/pr_auto_response_labeled_routes.js, .github/workflows/scripts/pr_check_status_nudge.js, .github/workflows/scripts/pr_intake_checks.js, .github/workflows/scripts/pr_labeler.js, .github/workflows/scripts/test_benchmarks_pr_comment.js
Contributor tier label assignment based on merged PR count with policy fallbacks, label-driven issue/PR response routing with idempotent commenting and conditional closing, stale PR nudging based on commit age and CI status, PR metadata validation and formatting issue detection with sticky commenting, comprehensive label governance with module inference, provider/channel hints, metadata drift repair, and contributor tier assignment, and benchmark result summary posting to PR comments.

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant LocalGit as Local Git Hooks
    participant GitHub as GitHub
    participant Actions as GitHub Actions
    participant Cache as Build Cache
    participant Registry as GHCR
    participant Security as Security Tools

    Developer->>LocalGit: git commit
    LocalGit->>Security: gitleaks protect (staged)
    Security-->>LocalGit: Allow/Block commit
    
    Developer->>LocalGit: git push
    LocalGit->>Actions: Pre-push hooks
    Actions->>Actions: rust_quality_gate
    Actions->>Actions: cargo test --locked
    Actions-->>LocalGit: Allow/Block push
    
    Developer->>GitHub: Push to branch
    GitHub->>Actions: Trigger CI
    Actions->>Actions: Detect changes scope
    
    alt Rust changes detected
        Actions->>Cache: Restore Rust cache
        Actions->>Actions: Lint & quality gates
        Actions->>Actions: Run tests
        Actions->>Cache: Store Rust cache
    end
    
    alt Docs changes detected
        Actions->>Actions: Markdown quality checks
        Actions->>Actions: Link validation
    end
    
    Actions->>Actions: Feature matrix build
    Actions->>Actions: Fuzz testing
    Actions->>Security: CodeQL analysis
    
    opt Release mode
        Actions->>Actions: Build multi-target binaries
        Actions->>Security: Generate SBOMs
        Actions->>Security: Cosign signing
        Actions->>Registry: Push Docker image
        Actions->>Registry: Run Trivy scans
        Actions->>GitHub: Create Release
    end
    
    GitHub-->>Developer: CI results & deployment
Loading

Estimated code review effort

🎯 5 (Critical) | ⏱️ ~120 minutes

Poem

🐰 Hops with joy through GitHub Actions deep,
CI gates and tests stand watch while devs sleep!
Workflows orchestrate from hook to release,
Security, quality, features at peace.
A rabbit's refrain: automate with care,
Where policy guides and no secrets lay bare. 🔐

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/add-github-config

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant