How can I, using REST or GraphQL, retrieve all repos enterprise-wide that CURRENTLY have vulnerabilities - also dismissed non-stale ones #150596
Replies: 4 comments 3 replies
-
|
💬 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.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
### Using GitHub GraphQL API GraphQL Query: states: OPEN ensures only active vulnerabilities are fetched. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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