Create a license policy and rules

Administrators can configure the following settings for each license:

  • The level of severity— values include None, Low, Medium, and High.

    • When None is selected, instructions cannot be inserted since licenses marked with None do not appear in any Snyk test results.

    • New licenses added by Snyk inherit the Unknown license type severity. In cases where this severity is not set to None, newly added licenses appear in Snyk test results.

  • Legal instructions for developers—enter free text to provide any necessary instructions for developers.

    • We recommend describing your company’s specific policy, explaining the need for collaboration from your developers as well as providing them with step-by-step instructions if any are needed

    • Legal instructions will appear in the CLI results, in PR Checks, and on issue cards in the Project view

Feature availability For customers with an Enterprise plan, group administrators can create or modify a policy. See pricing plans for more details.

Access license policies

If your company's account has one or more groups, to access the License policy settings:

  1. Use the Switch group selector and choose a Group to open its overview.\

    Defining policy.
    Defining policy
  2. Go to Policies > Policy manager > License policies > Organization and choose the policy you want to update.

The License policy screen displays the list of Organizations that the policy applies to, a policy description, and the licenses included in the policy.

You can edit the license severities and instructions.

License policy overview.
License policy overview

Assign rules and severities for a license policy

  1. In Policy manager > License policies > Organization, choose a policy link to open the License policy screen.

  2. To set the severity for specific licenses, click the Severity selector in the License policy screen, and choose a Severity level to define which license issues you want to identify when Snyk tests run. If you select a severity other than None, and you want additional instructions / fix recommendations to appear when that license issue is identified, then select the instructions icon to the right of the Severity dropdown and enter the text for the license instruction.

  3. Click Add or Update to confirm your changes.

  4. Click Submit to save your policy.

Updating policy instructions.
Updating policy instructions
Submitting policy instructions
Submitting policy instructions

The updated severities or instructions (or both) are automatically updated on Snyk servers. When the next scheduled test runs, or when a user re-tests a Project, updated results are delivered according to these changes. See License policy results for details.

Set severity for "unknown" license types

Unknown license types are where Snyk has not recognized a license for a given package version. You can set a severity level for Unknown; for example, to ensure these license issues are given a higher severity and so appear more prominently in results.

Scroll down the licenses list on the right of the policy you are editing, then select the Severity drop-down for the Unknown license type:

Set severity for "unknown" license types
Set severity for "unknown" license types

Snyk applies the severity level set for Unknown to new license types when we add them to your license policy.

Last updated

Was this helpful?

#4707: More info: Update pricing plans page

Change request updated