GitHub Connection

Connect GitHub to enable white box pentesting with SAST, SCA, and secret detection.

Two connection methods

The TurboPentest GitHub App provides fine-grained repository access.

  1. Go to Dashboard > Account > GitHub
  2. Click Install GitHub App
  3. Select the repositories you want to grant access to
  4. You are redirected back to TurboPentest

Benefits:

  • Per-repository access control
  • No personal token exposure
  • Automatic token refresh

OAuth

OAuth grants access to all repositories your GitHub account can see.

  1. Go to Dashboard > Account > GitHub
  2. Click Connect with GitHub
  3. Authorize TurboPentest

When to use: If you cannot install GitHub Apps on your organization, or for quick personal repository testing.

Using GitHub with pentests

Once connected, include the repoUrl in your pentest request:

curl -X POST https://turbopentest.com/api/pentests \
  -H "X-API-Key: $TURBOPENTEST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "targetUrl": "https://app.example.com",
    "repoUrl": "https://github.com/your-org/your-repo"
  }'

This enables Semgrep (SAST), Trivy (SCA), and Gitleaks (secret detection) in addition to all black box tools.

Managing connections

View and manage your GitHub connections in Dashboard > Account > GitHub. You can:

  • See which repositories are accessible
  • Disconnect a connection
  • Switch between OAuth and GitHub App

On this page