Semgrep

Semgrep

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Connect Semgrep to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Enter your Semgrep API token to sync your static analysis data — deployments, projects, code (SAST) and supply chain (SCA) findings, and secrets — into the PostHog Data warehouse.

Create a token in Semgrep AppSec Platform under Settings → Tokens and grant it the Web API scope. The API requires a Semgrep Team or Enterprise plan.

Configuration

OptionTypeRequired
API tokenpasswordYes

Linking Semgrep to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Semgrep
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
deployments

The Semgrep deployment (organization) the API token can access, with its identifiers and links to related resources.

Full refreshid
projects

Projects (repositories) that have been scanned by or onboarded to Semgrep in the deployment. Archived repositories are not returned.

Full refreshdeployment_id, id
sast_findings

Code (SAST) findings Semgrep has identified in the deployment, deduplicated across refs/branches to match the counts in the Semgrep UI.

Full refreshdeployment_id, id
sca_findings

Supply chain (SCA) findings Semgrep has identified in the deployment's dependencies, deduplicated across refs/branches to match the counts in the Semgrep UI.

Full refreshdeployment_id, id
secrets

Secrets findings Semgrep has detected in the deployment's repositories, with validation state for supported services. Note: this endpoint returns camelCase field names.

Full refreshdeployment_id, id