Advanced Usage

CI/CD & Pipeline Integration

Integrate CODI into your existing CI/CD workflows using GitHub Actions, GitLab CI, or webhooks to automate scaffold, audit, test, and deploy steps on every commit or pull request.

Integrate CODI into your existing CI/CD workflows using GitHub Actions, GitLab CI, or webhooks to automate scaffold, audit, test, and deploy steps on every commit or pull request.

Written By: Harry Osborn

Last Updated on June 5, 2025

Introduction

Automating your on-chain development pipelines ensures consistency, speed, and security. This page demonstrates how to incorporate CODI agents into CI/CD systems—complete with example workflows, secrets management, and monitoring best practices.


1. GitHub Actions Example Workflow

name: CODI Pipeline
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]


2. GitLab CI/CD Pipeline Snippet



3. Webhooks & Event-Driven Agent Runs

  • Webhook Trigger: Configure CODI Web UI to send HTTP POST on repo events (push, PR).

  • Custom Handler: Build a small service that receives webhook and invokes CODI agents via REST API:

    
    


4. Secrets Management & Key Rotation

  • Environment Variables: Store SOLANA_WALLET_KEY, GITHUB_TOKEN, and agent-specific tokens in CI secrets.

  • Rotation Strategy: Rotate keys quarterly and update via UI or CLI:


5. Monitoring, Notifications & Alerts

  • Slack Integration: Use CODI’s webhook to post status to Slack channels on job completion or failure.

  • Email Alerts: Configure email notifications for audit failures or high-severity findings.

  • Dashboard Metrics: Leverage CODI’s API to pull metrics (build times, vulnerability counts) into Grafana or Datadog.


Conclusion

Embedding CODI agents into CI/CD pipelines automates critical steps and enforces consistency across your Solana projects. Use the provided examples to get started, then customize workflows and alerts to match your team’s processes.


© 2025 CODI all rights reserved | Created with ♥️

© 2025 CODI all rights reserved | Created with ♥️

© 2025 CODI all rights reserved | Created with ♥️