Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.semgrep.dev/llms.txt

Use this file to discover all available pages before exploring further.

INFOA project is any codebase, repository, or folder within a monorepo that is added to Semgrep for scanning. This includes all the findings, history, and scan metadata for the project.

What are Semgrep Managed Scans?

Semgrep Managed Scans allow you to run Semgrep scans without needing to set up and maintain your own infrastructure. It provides a simple, scalable way to scan your code for security vulnerabilities, code quality issues, and other problems without setting up and maintaining separate configurations for each project.

Supported source code managers

You must be an existing Semgrep AppSec Platform user with one of the following plans:
  • Bitbucket Cloud Premium plans or Bitbucket Data Center (v8.8 or above for diff-aware scans)
  • Hosted GitHub (GitHub.com) and GitHub Enterprise Server plans
  • GitLab Cloud and GitLab self-managed plans and a Premium or Ultimate subscription
  • Azure DevOps Cloud repositories

Add projects to Semgrep Managed Scans

Prerequisites

You must have admin access to your Azure DevOps organization.Read access is granted through an access token you generate on Azure DevOps. You can provide this token by adding Azure DevOps as a source code manager.Semgrep recommends setting up and configuring Semgrep with an Azure DevOps service account, not a personal account. Regardless of whether you use a personal or service account, the account must be assigned the Owner or Project Collection Administrator role for the organization. During setup and configuration, you must provide a personal access token generated by this account. This token must be authorized with Full access. Once you have Semgrep Managed Scans fully configured, you can update the token provided to Semgrep to a more restrictive one. The scopes you must assign to the token include:
  • Code: Read
  • Code: Status
  • Member Entitlement Management: Read
  • Project and Team: Read & write
  • Pull Request Threads: Read & write

Add a project

2
Navigate to Projects, and click Scan new project > Semgrep Managed Scan.
3
In the Enable Managed Scans for repos page, select the repositories you want to add to Semgrep Managed Scans.
4
Click Enable Managed Scans. The Enable Managed Scans dialog appears. By default, Semgrep runs both full and diff-aware scans.
5
Click Enable. You are taken to the Projects page as your scans begin.
Semgrep now performs a full scan on all the projects that you added in batches. You can view your projects in Semgrep AppSec Platform. All projects with a Managed Scan configuration are tagged with managed-scan, regardless of whether they are actively being scanned by Semgrep Managed Scans.

Next steps

Once a scan has finished, you can view your findings on the following Semgrep AppSec Platform pages: See Semgrep Managed Scans to learn more about how Semgrep manages your scans.