Regression in 43.164.2: git submodule (git-refs datasource) fails with "Authentication failed" #43735
Unanswered
sjaakkie
asked this question in
Request Help
Replies: 1 comment 1 reply
-
|
Hi there, You're reporting a problem with an old version of Renovate. Please try the latest version and tell us if that fixes your problem. Be sure to provide updated logs once you have run with a newer version. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate CLI
Which platform you running Renovate on?
GitHub.com
Which version of Renovate are you using?
43.208.1
Please tell us more about your question or problem
Summary
Starting from
43.164.2, Renovate fails to look up updates for git submodules defined in.gitmodules. Thegit ls-remotecall fails with an authentication error. The same setup worked correctly on43.164.1.43.164.243.164.1Platform
Expected behavior
Renovate resolves the latest commit digest for git submodules by running
git ls-remotewith proper credentials. This worked on43.164.1.Actual behavior
Renovate exits with a non-zero exit code. The logged error for the
git-refsdatasource lookup is:"message": "remote: Repository not found.\nfatal: Authentication failed for 'https://github.com/org/private-submodule-repo.git/'"
Full error context from the Renovate log:
{ "datasource": "git-refs", "packageName": "https://github.com/org/private-submodule-repo.git", "packageFile": ".gitmodules", "err": { "task": { "commands": ["ls-remote", "https://github.com/org/private-submodule-repo.git"] }, "message": "remote: Repository not found.\nfatal: Authentication failed for 'https://github.com/org/private-submodule-repo.git/'" }, "msg": "lookupUpdates error" }The stack trace shows that a token IS being embedded in the URL (appears as redacted in the log), but GitHub still responds with "Repository not found" + "Authentication failed". The GitHub App has access to the submodule repository (same organization).
Renovate configuration
.gitmodules:
renovate.json:
{ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "enabledManagers": ["git-submodules"], "git-submodules": { "enabled": true } }GitHub Actions workflow:
The token is generated via actions/create-github-app-token scoped to the entire organization.
Steps to reproduce
Workaround
Pin back to 43.164.1. The issue does not occur on that version.
Additional notes
The simple-git version used is 3.35.2. The token does appear to be passed in the URL (visible as redacted in the stack trace), so Renovate is attempting to authenticate ? but something in the credential handling or URL construction seems to have changed between 43.164.1 and 43.164.2.
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions