How fix warning The \"autodiscover\" option is a global option reserved only for Renovate's global configuration and cannot be configured within a repository's config file.? #28820
-
What would you like help with?I would like help with my configuration How are you running Renovate?Mend Renovate hosted app on github.com If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.GitHub Please tell us more about your question or problemI trigger renovate with a GitHub workflow and have autodiscover enabled in a .github/renovate.json5 configuration file. When the workflow is running, I get a warning:
However, if I remove the autodiscover option from the configuration, the repository is not found. => What is the recommended way to start renovate and configure it correctly, so that the repository is found and no warning is shown? The GitHub app does not seem to have an option to specify a global config file? https://github.com/fraunhofer-isi/micat/actions/runs/8938338117/job/24552268761 .github/workflows/renovate.yml:
.github/renovate.json5: { Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
You are using a repo config filename by mistake. You should be putting these settings in a global config file, such as config.js or config.json. Almost any file name would work, but do not use one of the reserved repo config file names |
Beta Was this translation helpful? Give feedback.
-
Using an extra envrionment option
If there is a differnt solution that should be used as best practice, please let me know. |
Beta Was this translation helpful? Give feedback.
Yes, it should point to a global configuration file. I agree with you that the wording of the first dot point you referenced seems misleading:
@viceice wdyt?