Why is my repository not receiving PR or MR comments?
If you have configured Semgrep in CI and Semgrep AppSec Platform to create comments when a rule generates a finding in a PR or MR, but you are not seeing those comments, review the following possibilities.
Are comments supported in your source code manager (SCM)?
PR or MR comments are currently supported for:
- All GitHub plans
- All GitLab plans
- All Bitbucket plans
- Azure DevOps Cloud repositories
PR or MR comments are not supported for:
- Any other SCM or repository provider
A connection to a source code manager is required for a repository to receive PR or MR comments. If you have not done so yet, set up a connection for your SCM organization or project.
If you are using a self-hosted version of your SCM, see Connect to on-premise orgs and projects for more details on configuration.
Have you configured permissions and tokens correctly?
GitHub
Semgrep relies on the Semgrep GitHub app to make comments on code. To receive comments on a project, ensure that you have performed the following steps:
-
You have onboarded the project to Semgrep AppSec Platform.
-
You have configured your GitHub app with permissions for all repositories that are scanned by Semgrep AppSec Platform. See Enabling GitHub pull request comments for details, or review the following examples:
Figure. Grant permissions for access to all repositories.
Figure. Grant permissions for access to select repositories. Ensure the repositories you have onboarded to Semgrep AppSec Platform are included here.