Skip to main content

Overview

Integrate KafkaCode into your CI/CD pipeline to automatically scan for privacy issues on every commit, pull request, or deployment.

GitHub Actions

Basic Integration

Create .github/workflows/privacy-scan.yml:

Advanced Configuration

With grade checking and artifact upload:

Only on Changed Files

Scan only files changed in PR:

GitLab CI

Basic Pipeline

Create .gitlab-ci.yml:

With Artifacts

Merge Request Integration

CircleCI

Create .circleci/config.yml:

Jenkins

Declarative Pipeline

Create Jenkinsfile:

Scripted Pipeline

Travis CI

Create .travis.yml:

Azure Pipelines

Create azure-pipelines.yml:

Bitbucket Pipelines

Create bitbucket-pipelines.yml:

Pre-commit Hooks

Using Husky

Install Husky:
Create .husky/pre-commit:

Using lint-staged

Install:
Update package.json:

Using pre-commit framework

Create .pre-commit-config.yaml:

Docker Integration

Dockerfile

Docker Compose

Deployment Gating

Block on Critical Issues

Grade-Based Gating

Scheduled Scans

Cron Job

GitHub Actions (Scheduled)

Best Practices

Always scan pull requests before merging:
Never allow deployment with critical issues:
Alert relevant teams when issues are found:
Run privacy scans early in pipeline:

Next Steps

Examples

See complete CI/CD examples

Pre-commit Hooks

Set up pre-commit scanning

Interpreting Results

Understand scan reports

Troubleshooting

Solve CI/CD integration issues