How can I, using REST or GraphQL, retrieve all repos enterprise-wide that CURRENTLY have vulnerabilities - also dismissed non-stale ones #150596
Replies: 3 comments 1 reply
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
i got a realevant project first with DRF then With graphQL |
Beta Was this translation helpful? Give feedback.
-
### Using GitHub GraphQL API GraphQL Query:
states: OPEN ensures only active vulnerabilities are fetched. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
There isn’t, as far as I can find, currently a “magic flag” on the GitHub APIs that tells me “this CVE is currently affecting the default branch” or "This REPO has an open vulnerability that has not been fixed/closed/dismissed" so that I can replicate exactly what the web UI shows.
In my experience the Dependabot Alerts endpoints (both REST and GraphQL) return alerts for every branch (or manifest) in a repository. That means that—even if the default branch is “clean”—any open alert generated for a now‑obsolete branch (or an old manifest file) will still show up as an open alert via the API.
I also need to find all dismissed alerts that are still relevant to the repo. I can find dismissals that are stale since a fix was implemented later.
If this is not possible, please consider this a feature request.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions