Configure PR Checks

Before you begin

A PR Check is counted as a test within your Organization's test count, including automatic checks of new commits in an open pull request (see What counts as a test). The number of tests is subject to the pricing plans.

Prerequisites

To check for open source and licensing issues and code security, make sure that you meet the following conditions:

PR Checks for Snyk Code is in Closed Beta and only available for Enterprise plans.

Programming language support

PR Checks also support all programming languages supported by the Snyk Code and Open Source engines (see programming language support for Snyk Code and Open Source).

How the configuration works

You can configure PR Checks either at the Integration level for your Snyk Organization or for specific Snyk Projects in an Organization.

  • In your Organization, you can have multiple repository integrations, but the feature works only for those integrations that have been configured.

  • At the Project level, the settings are inherited from the integration by default, but you can configure custom settings.

Configure PR Checks at the integration level

Configure PR Checks on a specific Git repository you have already integrated with Snyk, such as GitHub.

The configuration settings apply to all Projects in that Organization. You can also extend the configuration to Projects with custom settings.

  1. Open Snyk Web UI, go to Settings > Integrations section and then select your connected source code manager to open settings configuration.

  2. To check for code issues, configure and save the following changes:

Pull request check settings to analyze code issues.
PR check settings to analyze code issues

If you cannot see the Code Analysis section, make sure that your user has the Group Admin role assigned and that the feature is enabled for Snyk Code (see Prerequisites).

  1. To check for open source and licensing issues, configure and save the following changes:

Pull request check settings to analyze opena source and licensing issues.
PR check settings to analyze open source and licensing issues
  1. Either click Save to save the changes, or select the Save dropdown and click Apply changes to all overridden Projects to extend the current configuration to Projects with custom settings (see Configure PR Checks at the project level).

Configure PR Checks at the Project level

You can configure PR Checks to work only for specific Projects:

  1. Go to Projects, then expand the target containing your project.

  2. Click a project name to open it. Based on the project type, you can choose the following:

  • package.json to check for open source and licensing issues.

  • Code analysis to check for security issues in your code.

Project level overview.
Project level overview
  1. Go to Settings.

  2. On the left side, select your integration. For this example, GitHub has been integrated with Snyk.

  3. Configure Project settings based on your Project type:

Configure for open source and licensing issues (click to expand)
  1. In Snyk test for pull request select Custom to **** configure the settings.

  2. Enable the option to fail the PR when open source and licensing issues found in the proposed changes exceed your specified severity threshold.

  3. Configure the following settings:

  1. Update Snyk pull request settings to save changes.

Configure for code analysis (click to expand)
  1. In Snyk Code for pull request select Custom to **** configure the settings.

  2. Enable this option **** to fail the PR when the security issues found in the proposed changes exceed your specified severity threshold.

  3. Configure the following settings:

  1. Update Snyk pull request settings to save changes.

Last updated

Was this helpful?

#4707: More info: Update pricing plans page

Change request updated