Back to Documentation
CI/CD Integration
Add DeepSweep to your CI/CD pipeline
GitHub Actions
Add the official GitHub Action to your workflow:
# .github/workflows/deepsweep.yml
name: DeepSweep Security
on: [push, pull_request]
jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: DeepSweep Validation
uses: deepsweep-ai/deepsweep-platform/action@main
with:
path: .
fail-on-grade: C GitLab CI
Add to your .gitlab-ci.yml:
# .gitlab-ci.yml
deepsweep:
stage: test
image: python:3.12
before_script:
- pip install deepsweep-ai
script:
- deepsweep validate . --format sarif > gl-code-quality-report.json
artifacts:
reports:
codequality: gl-code-quality-report.json Pre-commit Hook
Run DeepSweep before every commit:
# .pre-commit-config.yaml
repos:
- repo: https://github.com/deepsweep-ai/deepsweep
rev: v1.0.2
hooks:
- id: deepsweep
args: ['--fail-on', 'critical']