Skip to content

gitlab

Functions:

  • get_vulnerability_states

    Use the GitLab GraphQL to get all vulnerabilities in a project with their state and associated

  • send_mutations

    Send a list of mutations to GitLab to dismiss or un-dismiss vulnerabilities.

Attributes:

GITLAB_URL module-attribute

GITLAB_URL = 'https://gitlab.developers.cam.ac.uk'

get_vulnerability_states

get_vulnerability_states()

Use the GitLab GraphQL to get all vulnerabilities in a project with their state and associated details.

Return a dict mapping id to the vulnerability details.

send_mutations

send_mutations(mutations)

Send a list of mutations to GitLab to dismiss or un-dismiss vulnerabilities.