🔄 CI/CD Integration
One-click setup for automated policy checks in your CI/CD pipeline.
Setup
Ctrl+Shift+P → "Agent OS: Setup CI/CD Integration"
Supported Platforms
GitHub
GitLab
Jenkins
Azure
CircleCI
GitHub Actions Example
Generated .github/workflows/agentos.yml:
name: AgentOS Policy Check
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
policy-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install AgentOS
run: pip install agent-os
- name: Run Policy Validation
run: agent-os validate --policy policies/ --strict
env:
AGENT_OS_KEY: ${{ secrets.AGENT_OS_KEY }}
- name: Security Scan
run: agent-os scan --path src/ --output sarif
- name: Upload Results
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: agentos-results.sarif
Git Hooks
Install pre-commit hooks for local validation:
Ctrl+Shift+P → "Agent OS: Install Git Hooks"
This adds:
- pre-commit - Validates changed policy files
- pre-push - Runs full compliance check
What Gets Checked
- Policy file syntax validation
- Policy conflict detection
- Security vulnerability scanning
- Compliance framework validation
- Agent code safety analysis