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
Enable the global configuration following the steps in this document:
Global Repo Configuration | Enabling-the-Global-ConfigurationOnce the global configuration is enabled, navigate to the
global-config.json
in the whitesource-config repositoryChange the value for
repoConfigMode
to either pushWhitesourceFile or noWhitesourceFileCODE{ "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
Click the Integrate tab from Mend UI
Expand the Developer Integrations option
Select Mend for GitHub.com
Click Manage Workflow Rules
Disabling Renovate Pull Requests
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 repositoryIf you don’t see the parameter
enableRenovate
in the file, the renovate pull requests will not be createdIf 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"] } } }