New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetching gitlab submodules now fails with 403. oauth2 is stripped from URL. #11710
Comments
Hello |
Hi there, Help us by making a minimal reproduction repository. Before we can start work on your issue we first need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. To get started, please read our guide on creating a minimal reproduction to understand what is needed. We may close the issue if you (or someone else) have not provided a minimal reproduction within two weeks. If you need more time, or are stuck, please ask for help or more time in a comment. Good luck, The Renovate team |
There's not enough information in this bug report so far to identify why the problem is occurring or if it was a scenario we planned to support in the first place or just supported accidentally. Rolling back #11615 may cause other problems. |
I've setup a test repository to trigger this issue. Just replace with a gitlab.com access token. git clone git@gitlab.com:uncycler/renovate-11710.git
cd renovate-11710
docker run -it -e RENOVATE_TOKEN=<PAT> -e RENOVATE_CONFIG_FILE=config.js -v $(pwd):/renovate renovate/renovate:27.6.1 /bin/bash
cd /renovate && renovate You should get a password prompt: INFO: Repository started (repository=uncycler/renovate-11710)
"renovateVersion": "27.6.1"
INFO: Fallback to renovate.json file as a preset is deprecated, please use a default.json file instead. (repository=uncycler/renovate-11710)
Password for 'https://<PAT>@gitlab.com': Regarding #11615, pushing typedPlatformRule before platformRule fix the issue.. : returnConfig.hostRules = returnConfig.hostRules || [];
const typedPlatformRule = {
...platformRule,
hostType: returnConfig.platform,
};
returnConfig.hostRules.push(typedPlatformRule);
hostRules.add(typedPlatformRule);
returnConfig.hostRules.push(platformRule);
hostRules.add(platformRule); |
🎉 This issue has been resolved in version 27.6.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 27.9.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
How are you running Renovate?
Self-hosted
Please select which platform you are using if self-hosting.
No response
If you're self-hosting Renovate, tell us what version of Renovate you run.
27.5.0
Describe the bug
Since this PR was merged: #11615, fetching submodule fails with 403 errors on gitlab.
The debug logs looks ok, but right after, renovate is asking for a password showing the token in cleartext.
Reverting #11615 fix this issue.
Relevant debug logs
Logs
Have you created a minimal reproduction repository?
No reproduction repository
The text was updated successfully, but these errors were encountered: