-
Notifications
You must be signed in to change notification settings - Fork 10
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
v4 requirement for token breaks coverage reporting for Dependabot pull requests #264
Comments
Hi, |
Yeah, despite dependabot not using forks, it's considered a special-case by GitHub due to the potential for a malicious package update that could then steal secrets. |
Do I need to downgrade to v3 in order to continue using tokenless usage of codecov? |
Interestingly when I pushed an extra change to dependabot on PR, it did got access to the secrets, https://github.com/ansible/tox-ansible/actions/runs/7785362141/job/21227778925?pr=265 |
@rohan-at-sentry fyi |
The changes in the v4 action to require an upload token break the ability for code coverage metrics to be uploaded for pull requests created by dependabot.
Dependabot PRs have not had access to secrets since March 2021 as otherwise a potentially malicious package update could execute arbitrary code with access to such secrets.
While the codecov token could be configured per repository as a duplicate Dependabot-scoped secret in addition to a normal repository secret, this is additional burden on the maintainer to configure, as well as exposing their secret to potentially untrusted code.
Pull requests from Dependabot should be treated the same as with pull requests from forks, and be permitted to upload to codecov without access to an upload token.
The text was updated successfully, but these errors were encountered: