Skip to main content

GitLab App

The Precogs GitLab integration brings automated security scanning to your GitLab CI/CD pipelines.

Installation

  1. Log in to your Precogs Dashboard.
  2. Navigate to IntegrationsGitLab.
  3. Click Connect GitLab and authorize Precogs.
  4. Select the projects you want to scan.

CI/CD Integration

Add the Precogs scanner to your .gitlab-ci.yml:

stages:
- test

precogs-scan:
stage: test
image: precogs/scanner:latest
script:
- precogs scan --ci
only:
- merge_requests

Configuration

Create a .precogs.yaml file in your repository root:

# .precogs.yaml
scan:
enabled: true
languages:
- python
- javascript
severity_threshold: medium

Merge Request Comments

Precogs will automatically comment on merge requests with:

  • Security findings with severity levels
  • Remediation suggestions
  • Links to detailed reports in the dashboard

Next Steps