Skip to content
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

Notify when Dependabot jobs encounter an error #3509

Open
sbrunner opened this issue Apr 18, 2021 · 7 comments
Open

Notify when Dependabot jobs encounter an error #3509

sbrunner opened this issue Apr 18, 2021 · 7 comments
Labels
E: api-support APIs for consuming and managing Dependabot features and data F: error-messages Better communicate expected errors F: github-ui Issues related to any part of the Dependabot UI in GitHub service 💁 Relates to Dependabot features GitHub provides T: feature-request Requests for new features

Comments

@sbrunner
Copy link

Is it possible to be notified when Dependabot has an error when he tries to do the update (e.g. "Dependabot can't resolve your Python dependency files"), Or having an API to be able to get them.

I need it because I survey many repositories...

Dependabot version 1 was opening an issue, this was enough for me :-)

@sbrunner sbrunner added the T: feature-request Requests for new features label Apr 18, 2021
@brrygrdn
Copy link
Contributor

👋🏻 @sbrunner Thanks for opening an issue, this is definitely something we want to get to. I don't have an ETA right now that I can share but we definitely want to improve the visibility of job outcomes when a PR isn't created.

@cfryanr
Copy link

cfryanr commented Dec 16, 2021

+1. @brrygrdn, this would be especially valuable for a Go project.

For one of the projects that I work on, the Dependabot scanning quietly stopped working because we accidentally inherited an indirect dependency on a library that had at some point in the past violated the Go rule that a released package should not change its checksum. This would have been fixable with a replace directive in our project's go.mod if we were aware of Dependabot's failures, but we had no idea that Dependabot had stopped working for a long time. If something had emailed us or otherwise notified us to say that Dependabot got an error during dependency scanning, then we could have benefited from knowing much earlier. Unfortunately, this resulted in a long period of time where everything was working in our project's code and tests so we assumed that Dependabot was scanning our dependencies, but actually it was not scanning at all.

@jurre jurre added the service 💁 Relates to Dependabot features GitHub provides label Dec 16, 2021
@mwaddell
Copy link
Contributor

Currently, the only way to see that the last dependabot run did not fail is to manually go to the /network/updates page for each repository individually and make sure that none of them show an error of any kind.

Would it be possible to have dependabot create a new Issue (instead of a PR) whenever a run fails?

This issue would link to the /network/updates page itself in the case of a parsing error, such as:

image

This issue would link to the /network/update/<ID> page in the case of a failure of a particular ecosystem, such as:

image

@mwaddell
Copy link
Contributor

The issue of dependabot failing silently could also be resolved by reenabling the badges (see task #1912 and #1960), but using issues instead might be a simpler approach than creating a whole new set of endpoints to serve up badges...

@mwaddell
Copy link
Contributor

Probably the simplest solution would be to add an "Email each time a dependabot run fails" to the notification settings since there already exists logic to send out an email at the end of any run that has a security vulnerability. I don't believe that code exists in dependabot-core, that's probably in github's code itself, so I'm not sure if this is the appropriate place to log the issue. Is there a better repo for this request?

image

@mwaddell
Copy link
Contributor

mwaddell commented Jan 29, 2022

Could also be addressed using a custom workflow by:

@jeffwidman jeffwidman added E: api-support APIs for consuming and managing Dependabot features and data F: error-messages Better communicate expected errors labels Feb 2, 2023
@jeffwidman jeffwidman changed the title Notification on error Notify when Dependabot jobs encounter an error Feb 10, 2023
@jeffwidman jeffwidman added the F: github-ui Issues related to any part of the Dependabot UI in GitHub label Feb 10, 2023
@darokel
Copy link

darokel commented Jun 3, 2024

@jeffwidman Just checking in to see if there has been any progress with this request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E: api-support APIs for consuming and managing Dependabot features and data F: error-messages Better communicate expected errors F: github-ui Issues related to any part of the Dependabot UI in GitHub service 💁 Relates to Dependabot features GitHub provides T: feature-request Requests for new features
Projects
None yet
Development

No branches or pull requests

7 participants