Token Not Being Recognized in hostRules Section #28173
-
What would you like help with?I would like help with my configuration How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.GitLab Please tell us more about your question or problemI am encountering an issue with the hostRules section of my config.js, specifically when trying to use environment variables for the matchHost and token. The expected behavior is that Renovate would use these environment variables to authenticate against a self-hosted GitLab instance and fetch updates for dependencies. Non-working configuration:
Working configuration (with auth token hardcoded):
Error from debug logs:
Troubleshooting Attempts:
Any insights, suggestions, or guidance would be greatly appreciated. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi there, This issue or discussion is missing some logs, making it difficult or impossible to help you. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Mend Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsIf you're running self-hosted, run with Insufficient logsSelect me to read instructionsIf you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the No logs at all section. Formatting your logsSelect me to read instructionsPlease put your logs in a
If you feel the logs are too large to paste here, please use a service like GitHub Gist and paste the link here. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
We need more logs. If the renovate lookup works then the hostRules is probably working fine. Problem then is that renovate doesn't know how/where to pass any credentials to npm itself |
Beta Was this translation helpful? Give feedback.
I have managed to fix it by writing matchHost in the following way.