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
Dry run should not request github token #10441
Comments
More generally: we might need a token if it's private but it does not need to be a write-enabled token. |
Unfortunately GitHub's GraphQL isn't allowed unless you're authenticated, even for read-only data of a public repo. It errors with:
Therefore closing this as it's not possible. |
I am not using Github from renovate in any capacity with or without dry-run. Our code is stored on private Bitbucket. Why does renovate have to ask anything from Github at all? I think this ticket is closed wrongly without enough investigation. @rarkins , please reopen |
It's the same APIs and same limitation regardless of GitHub.com or self hosted. |
Why API is needed in the first place? I think dry-run could do without it. |
Specifically I do not understand why tool is trying to connect to Github in the first place. Our code is not connected to Github. There is literally nothing that connects it to Github and no infromation that could be retrieved from there regarding it. |
If you run You wrote earlier:
You wrote just now:
You misunderstand how Renovate works. There is no concept of running locally and I should have asked you to be more specific originally when you provided an invalid answer to that question. Finally, my previous comment of "regardless of GitHub.com or self hosted" was based on your original post where you said you are running GitHub not Bitbucket, before you edited it: This issue is closed, especially because it was based on a misunderstanding of Renovate to begin with. |
You still did not explain why API is needed when dry-run is selected. I believe it should not be required, but you evade that question. Would you be so kind to answer? |
I directly answered you that "there is no concept of running locally". Renovate always runs against an API, it does not run against local files. There is a feature request #3609 open for this capability. |
How are you running Renovate?
Please select which platform you are using:
Just running on my machine locally
Renovate version: 25.41.4
Describe the bug
When I run
renovate --dry-run
to define what would be the actions tool would take, I receive errorThere should not be a need for access token in dry run, since dry run mode is not supposed to make any authorized calls.
The text was updated successfully, but these errors were encountered: