Skip to main content
Skip table of contents

Cloud Repository Integrations - How to Prevent the Creation of Pull Requests

There are three kinds of Pull Requests (PR) created by Mend Repository Integrations - onboarding pull requests, remediate pull requests, and renovate pull requests.

This article provides steps to prevent the pull requests from being generated when using our Repository Integrations.

Instructions

Disabling Onboarding Pull Requests

  1. Enable the global configuration following the steps in this document:
    Global Repo Configuration | Enabling-the-Global-Configuration

  2. Once the global configuration is enabled, navigate to the global-config.json in the whitesource-config repository

  3. Change the value for repoConfigMode to either pushWhitesourceFile or noWhitesourceFile

    CODE
    {
      "repoConfigMode": "noWhitesourceFile"
    }
  • pushWhitesourceFile - A .whitesource configuration file with inherited configuration will immediately be pushed to the default branch of all integrated repositories without creating any onboarding PRs/MRs. The .whitesource configuration file generated in each repository will contain a single parameter settingsInheritedFrom with a value pointing to the repo name and branch in which the repo-config.json file is located.

  • noWhitesourceFile - Integrated repositories will be scanned without creating a .whitesource file or onboarding PR/MR. The integrated repositories will inherit the configuration from the repo-config.json file located inside the whitesource-config repository.

Disabling Remediate Pull Requests

The integration will not create any remediate pull request unless you have set up the workflow rules in the Mend UI.

Steps to check if you have any workflow rules for your organization

  1. Click the Integrate tab from Mend UI

  2. Expand the Developer Integrations option

  3. Select Mend for GitHub.com

  4. Click Manage Workflow Rules

Disabling Renovate Pull Requests

  1. For global configuration, go to the repo-config.json in the whitesource-config repository. For repository configuration, go to the .whitesource in the root of the repository

  2. If you don’t see the parameter enableRenovate in the file, the renovate pull requests will not be created

  3. If you do see this parameter, please disable it by changing the value to false

    CODE
    {
      "scanSettings": {
        "configMode": "AUTO",
        "configExternalURL": "",
        "baseBranches": []
      },
      "checkRunSettings": {
        "vulnerableCheckRunConclusionLevel": "failure",
        "displayMode": "diff"
      },
      "issueSettings": {
        "minSeverityLevel": "LOW"
      }
      {
      "remediateSettings": {
        "enableRenovate": false,
        "extends": ["config:base"]
      }
    }
    }
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.