rakshitshrivastava / GitLab-Vulnerability-Report-Fetching-and-Jira-Automation

Automate GitLab vulnerability report exports and Jira ticket creation. Fetches reports, enriches data, and creates tickets based on severity. Easy setup and usage.
0 stars 1 forks source link

GitLab-Vulnerability-Report-Fetching-and-Jira-Automation

This repository contains scripts for automating the fetching of vulnerability reports from GitLab and the creation of corresponding Jira tickets. The process involves exporting vulnerability reports from GitLab, enriching the data with additional information such as GitLab links and solutions, and then creating Jira tickets based on the enriched data.

Features:

Vulnerability Report Export: Automates the export of vulnerability reports from GitLab for one or multiple projects. Data Enrichment: Adds GitLab links and solutions to the exported CSV files. Jira Ticket Creation: Creates Jira tickets based on the enriched data, including setting due dates and priorities based on severity. Group and Project Selection: Allows selection of specific projects or all projects within a GitLab group for vulnerability report fetching. Requirements:

Python 3.x Requests library Pandas library Jira library

Usage: Run the gitlab_vulnerability_export.py script to export vulnerability reports from GitLab. Run the jira_ticket_creation.py script to create Jira tickets based on the exported data.

Instructions: Clone the repository to your local machine. Set up a virtual environment and install the required libraries (pip install -r requirements.txt). Configure the scripts with your GitLab and Jira credentials. Run the scripts to automate vulnerability report fetching and Jira ticket creation.

1.GITLABVULN.py Automates the export of vulnerability reports from GitLab, enriches the data with additional information such as GitLab links and solutions, and creates Jira tickets based on the enriched data.

2.GITLAB JIRA_TICKET_Creation.py Automates creation of Jira tickets from GitLab vulnerability reports, enriching data with GitLab links and solutions, and setting due dates and priorities based on severity.

Steps to Generate GitLab Report:

Before running the script, you need to provide your GitLab private token/API token.

Also, provide your group ID for which you want to fetch the report.

image

Steps to Create Jira Link:

  1. Provide your Jira domain.

  2. Provide your project key for creating a ticket on that project.

  3. After execution, the code will prompt you for your Jira email ID and API key.