Last active
June 4, 2024 14:22
-
-
Save davidlj95/69d89fa0c654a8ed1768b267a065b247 to your computer and use it in GitHub Desktop.
Print Renovate configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Local | |
LOG_LEVEL=debug pnpm dlx renovate \ | |
--platform local \ | |
--print-config true | |
# GitHub hosted | |
REPO="user/repo" | |
LOG_LEVEL=debug pnpm dlx renovate \ | |
--dry-run extract \ | |
--print-config true \ | |
--token $GITHUB_TOKEN \ | |
$REPO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Print Renovate configuration
Of a repository. Useful when wanting to debug what's the configuration that Renovate's GitHub app is using. For instance when extending presets.
Usage
Local
Renovate uses local file system as platform. This way you can see how current configuration in the file system is fully resolved.
--dry-run
is not needed as defaults tolookup
. Checkout all dry run modesNote
Seems when using local platform it won't properly lookup dependency updates for GitHub Actions
Even if specifying a valid token with
--token
. Probably due to local repository config.GitHub
To see the resolved configuration of an existing GitHub repository. It will use base branch for the repository.
Set
GITHUB_TOKEN
env var with a GitHub Personal Access Token. Read only should be enough (see quirks)Quirks
LFS
If the repository uses Git LFS, using GitHub (not local) platform (default) & the access token is a read-only fine-grained token, the command will fail due to an authorization error to get LFS files. You can either:
git lfs uninstall
before running the command. Rungit lfs install
to restore Git LFS filters later.public_repo
scope for public repositories orrepo
scope for private repositories. Beware the token will have write permissions.--dry-run
flag should instructrenovate
to don't do any write op though.