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.
Permissions
To add a repository, you must install the public Semgrep GitHub app and create and install a private Semgrep GitHub App.- The public Semgrep GitHub app is required to easily add members of your GitHub org to your Semgrep org.
- The private Semgrep GitHub app is required to enable code access for Managed Scans.
Add a repository
If you haven’t completed the installation of public and private Semgrep GitHub apps, you are redirected to the Set up Managed Scans page, which facilitates the creation of both.
i. Follow the steps in the page to create and register both a public and private Semgrep GitHub app.
i. Follow the steps in the page to create and register both a public and private Semgrep GitHub app.
In the Enable Managed Scans for repos page, select the repositories you want to add to Semgrep Managed Scans.
i. Optional: If you don’t see the repository you want to add, click Can’t find your project? and follow the troubleshooting steps provided.
i. Optional: If you don’t see the repository you want to add, click Can’t find your project? and follow the troubleshooting steps provided.
Click Enable Managed Scans. The Enable Managed Scans dialog appears. By default, Semgrep runs both full and diff-aware scans.
If you use the Semgrep Network Broker, you must edit your Broker configuration file; refer to Use Semgrep Network Broker with Managed Scans.
- After enabling Managed Scans, Semgrep performs a full scan in batches on all the repositories.
- Once a repository has been added to Semgrep AppSec Platform, it becomes a project. A project in Semgrep AppSec Platform includes all the findings, history, and scan metadata of that repository.
- Projects with a Managed Scan configuration are tagged with
managed-scan, regardless of whether the project is actively being scanned by Semgrep Managed Scans or not. The Projects list also contains pending scans and scans that never started.
Troubleshoot your Semgrep GitHub app installation
A complete installation is displayed in the Source Code Manager entry as follows:

If the page doesn’t display any repositories
Ensure you have provided access to both the private and public Semgrep GitHub to the repositories you want to scan by following the steps in Permissions and synchronicity.
If the page doesn’t display the repository you want to add, click Can’t find your project? > Sync projects.
Convert or migrate an existing Semgrep CI job
You can immediately add any existing project to Managed Scans.Follow the steps in Add a repository.
Scan management and configuration
Manually run a full scan
You can manually run a full scan for both primary and non-primary branches.
Re-run a failed scan or a scan that never finished
Find the scan that failed or never finished using the Status column, and click Details to open the Scan logs dialog.
Disable diff-aware scans on PRs
Delete a project
To delete an archived project:
Configure fail open to prevent diff-aware scans from blocking pull requests and merge requests
By default, diff-aware managed scans are set to fail open if a scan errors out or takes too long. This means that diff-aware scans are marked as successful on the pull request (PR) or merge request (MR), even if they haven’t completed after the specified timeout, allowing you to make the Semgrep status check required in your source code manager (SCM) while not blocking someone from merging a PR or MR if the check encounters an unexpected issue or takes too long.
How fail open works
If Semgrep marks a PR or MR as
succeeded, you can merge the PR or MR without waiting for the diff-aware scan to complete. However, if the PR or MR is still open and the scan completes after the fail open timeout is reached, Semgrep can still report the findings and mark the status as failed.
Configure fail open
By default, fail open is enabled. However, you can disable this feature and adjust the timeout value:Sign in to Semgrep AppSec Platform.
Revoke Semgrep’s access to your repositories
Remove the private app
The following steps revoke the code access you previously granted Semgrep for all repositories you selected.Limit access to specific repositories
Navigate to your GitHub settings page.
Turn off Managed Scans for specific repositories in Semgrep AppSec Platform
Go to Projects and find the project you no longer want scanned with Semgrep Managed Scanning. Click the project’s Details page > Settings tab.
Appendices
Permissions and synchronicity
Both the public and private Semgrep GitHub app must have access to the repositories you want to scan. To view the repositories you have granted access to:Navigate to your GitHub settings page.
Scan logs
To view your scan logs in Semgrep AppSec Platform, go to Projects, then click on the project name. The projects in the list are sorted by scan date, with the most recent scans are listed first.INFOIt can take a few minutes for your latest scan logs to appear. However, if the logs do not update 15 minutes after the scan, there may be issues with the scan itself.

