ScoreSec

CI/CD Integrations

Add a security gate to your pipeline. Fail builds that don't meet your security threshold.

Why integrate?

Shift Left

Catch security regressions before they reach production.

Zero Config

No agents, no infrastructure. Just an API key and a URL.

Fast Feedback

Passive scans complete in under 60 seconds.

Any Pipeline

GitHub, Azure DevOps, GitLab, Jenkins, CircleCI — works everywhere.

Getting an API Key

To use the CI/CD integration you need an API key. Sign in to your dashboard, go to API Keys, and create a new key. Store it as a secret in your CI/CD platform.

  1. Sign in and go to Dashboard > API Keys
  2. Click "Create API Key" and give it a descriptive name (e.g. "GitHub Actions")
  3. Copy the key immediately — it will not be shown again
  4. Store it as a secret in your CI/CD platform (e.g. GitHub Secrets, Azure DevOps Variable Group)

Grade Thresholds

Set the minimum acceptable grade. The scan will fail your build if the security grade is below this threshold. Available grades from strictest to most lenient:

GradeScoreMeaning
A+97-100Exceptional
A90-96Strong
B75-89Good (default threshold)
C60-74Fair
D50-59Below average
F0-49Critical issues

GitHub Actions

Add a security gate to your GitHub Actions workflow. The action runs a passive scan and fails the job if the grade is below your threshold.

yaml
name: Security Scan

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  security:
    runs-on: ubuntu-latest
    steps:
      - uses: your-org/blind-security/.github/actions/security-scan@main
        with:
          url: 'https://your-app.com'
          api-key: ${{ secrets.SCORESEC_API_KEY }}
          min-grade: 'B'

Azure DevOps

Include the pipeline template in your Azure DevOps YAML pipeline. The scan runs as a step and fails the job if the grade is below your threshold.

yaml
# azure-pipelines.yml
trigger:
  - main

pool:
  vmImage: 'ubuntu-latest'

steps:
  - template: pipelines/azure-devops-task.yml
    parameters:
      url: 'https://your-app.com'
      apiKey: $(SCORESEC_API_KEY)
      minGrade: 'B'

Shell Script

Use the standalone shell script in any CI/CD system. It works with Jenkins, GitLab CI, CircleCI, Bitbucket Pipelines, and more.

bash
# Download the script
curl -sL https://scoresec.tools/scripts/scoresec-scan.sh -o scoresec-scan.sh
chmod +x scoresec-scan.sh

# Run the scan
./scoresec-scan.sh \
  --url https://your-app.com \
  --api-key "$SCORESEC_API_KEY" \
  --min-grade B \
  --timeout 300

Parameters

FlagDescription
--urlTarget URL to scan (required)
--api-keyYour ScoreSec API key (required)
--min-gradeMinimum acceptable grade (default: B)
--api-urlScoreSec API base URL (default: https://scoresec.tools)
--timeoutMaximum wait time in seconds (default: 300)

Exit Codes

  • 0 Scan passed: grade meets or exceeds the threshold
  • 1 Scan failed: grade is below the threshold
  • 2 Error: scan could not be completed (timeout, network error, etc.)

Badge Embedding

After a scan completes, embed a grade badge in your README to show your current security posture:

markdown
<!-- Add to your README.md -->
![Security Grade](https://scoresec.tools/api/v1/badge/YOUR_SCAN_ID)
Preview:ScoreSec: AScoreSecScoreSecAA

Ready to secure your pipeline?

Create an API key in your dashboard and start scanning in under 5 minutes.

Create API Key
ScoreSec — Forensic Web Security Analysis by TR Group