Skip to content
Discussion options

You must be logged in to vote

As far as I can tell, the REST API doesn't currently offer a separate switch for "dependency graph only." The only available endpoint is:

PUT /repos/{owner}/{repo}/vulnerability-alerts

And per the docs, that endpoint enables both the dependency graph and dependabot alerts together: https://docs.github.com/en/rest/repos/repos#enable-vulnerability-alerts

In the UI, you can enable the graph without alerts, but I haven't seen an API equivalent for that.

So for now, it looks like "graph only" is UI-only. If you need programmatic control, a feature request might be the way to go ?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dev-james-ev
Comment options

@julienborgeon
Comment options

Answer selected by dev-james-ev
@dev-james-ev
Comment options

@julienborgeon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage
2 participants