Read the Security and Permissions page to learn more about:
- Renovate's security stance
- What do if you need to use certificed software
- The security/disclosure process
- Permissions
- Privacy
Renovate administrators can configure Renovate to either "autodiscover" installed repositories, or configure a fixed list of repository names to operate on.
If the administrator has configured a fixed list of repositories then the only way to "install" Renovate on a extra repository is for it to be manually added for the next run or restart.
Otherwise, the process for adding new repositories to a Renovate installation can vary:
- Most commonly, you run Renovate as a dedicated "bot user" with global config option
autodiscover
set totrue
, meaning that it will run on every repository which it's been granted access to - If using a GitHub App (including the Mend Renovate App) then you can install the app into a user or organization account and select either "All repositories", or "Select repositories" and pick them manually
Follow these steps to install and enable the Mend Renovate App:
First, navigate to https://github.com/apps/renovate and select the Install button:
The only choice you need to make is whether to run Renovate on all repositories or on selected repositories:
Renovate will ignore any repositories that don't have known package files, as well as any forks, so you can enable Renovate for all your repositories with no problems. That said, most people run Renovate on selected repositories. Unfortunately GitHub doesn't offer a "select all except X, Y, Z" option, so you must select each repository where you want Renovate to run.
Once you're done selecting repositories for Renovate to run on, select the green Install button at the bottom of the page and Renovate will be enabled for those repositories and start the onboarding process.
!!! note If you are using the Mend Renovate App then it has a custom behavior for forked repositories. If you choose "All repositories" when installing then forked repositories will be skipped by default, while if you choose "Select repositories" then they will be processed by Renovate even if they're a fork.
Unfortunately Mend's hosted GitLab app needed to be taken offline indefinitely until a viable security model for bots on GitLab.com is available. For more details on GitLab security for bots, please see the GitLab Bot Security doc.
We recommend you set core.autocrlf = input
in your Git config.
You can do this by running this Git command:
git config --global core.autocrlf input
This prevents the carriage return \r\n
which may confuse Renovate bot.
You can also set the line endings in your repository by adding * text=auto eol=lf
to your .gitattributes
file.
Once you have enabled Renovate on a repository, you will get a "Configure Renovate" Pull Request looking something like this:
!!! note
If you self-host Renovate, and want to add the rebase/retry checkbox to Renovate's onboarding PRs: enable the onboardingRebaseCheckbox
config option first.
Conveniently, Renovate will not make any changes to your repository or raise any further Pull Requests until after you merge the onboarding Pull Request. If there is anything about the Pull Request that you don't like or understand, take your time to read the documentation or ask questions on the discussions forum on GitHub and merge the PR only once you're satisfied with the result.
You can edit your Renovate configuration within the renovate/configure
branch and Renovate will keep updating the description in the PR to match, so you can work on the config until you're satisfied with the results.
If you have any Warnings or Errors listed, see if you need or want to make any changes to fix them.
Warnings and errors should be fixed on the base branch (e.g. main
) so that Renovate can recreate its Configure Renovate PR on its next cycle.
The "Configure Renovate" PR will include a renovate.json
file in the root directory, with suggested default settings.
If you don't want a renovate.json
file in your repository you can use one of the following files instead:
renovate.json5
.github/renovate.json
.github/renovate.json5
.gitlab/renovate.json
.gitlab/renovate.json5
.renovaterc
.renovaterc.json
.renovaterc.json5
package.json
(deprecated)
!!! warning This approach has been deprecated and will be removed in a future release.
You can add the same settings to a "renovate"
section in your package.json
file instead.
The package.json
file must be located at the root of your repository.
This is handy if you are already using a package.json
file anyway, e.g. when you're working on a JavaScript project.
The configuration in your package.json
will apply to the whole project (this includes other, nested package.json
files).
Renovate provides a renovate.json
file, with default settings that will work for most cases.
Sometimes Renovate detects that an override to these defaults is needed, and will add this override automatically, such as:
- Automatically enabling Angular-style semantic commits if your repository uses them
- Determining whether to use dependency range pinning depending on the detected project type (app vs library)
Please check the docs on this website for an exhaustive Configuration Reference. To help you get started, here are some of the most commonly changed (overridden) configuration settings:
- rangeStrategy: By default (with zero config) it's
"replace"
but the"config:recommended"
preset overrides it to"auto"
. Some prefer"bump"
. - labels: Labels to assign to Pull Requests
- assignees: GitHub user(s) to assign the Pull Requests to
Renovate will update your PR description each time it finds changes.
Once you're done checking and configuring in your Configure Renovate PR, it's time to merge it to enable the real Pull Requests to begin.
There will be times when you need to change your Renovate config. There are two recommended approaches:
- Reconfigure via PR
- Nuke the config and re-onboard
If you want to make config edits directly, follow these steps:
- Create a new Git branch to work on
- Install or update the
renovate
package globally (npm i -g renovate
oryarn global add renovate
) to get therenovate-config-validator
program - Edit your Renovate configuration file
- Validate your config
- If the improved config passes the validation, merge the branch into your mainline branch
Perhaps you really liked the interactive onboarding PR and want to use it again. You can follow the steps below to nuke the config and get a new PR. Any existing Renovate PRs will be closed after you've completed these steps.
- Find your original
Configure Renovate
PR - Rename the original PR to something else, e.g.
Configure Renovate - old
- Remove the current Renovate configuration file (e.g.
renovate.json
) from your mainline branch
Following these steps will trick Renovate into thinking that your repository was never onboarded, and will trigger a new "Configure Renovate" PR. If you're using the Mend Renovate App and you don't get a new onboarding PR within a few hours, then please create a Discussions post to request staff trigger it manually.