Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devwithkrishna/github-automatically-create-jira-issues-when-advanced-scanning-detects-an-issue
Automatically created jira issues whenever there is a issue detected by CodeQL analysis
https://github.com/devwithkrishna/github-automatically-create-jira-issues-when-advanced-scanning-detects-an-issue
atlassian-python-api automation github github-workflow jira poetry python
Last synced: about 2 months ago
JSON representation
Automatically created jira issues whenever there is a issue detected by CodeQL analysis
- Host: GitHub
- URL: https://github.com/devwithkrishna/github-automatically-create-jira-issues-when-advanced-scanning-detects-an-issue
- Owner: devwithkrishna
- License: other
- Created: 2024-05-07T20:10:43.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-10T16:04:08.000Z (4 months ago)
- Last Synced: 2024-09-10T17:54:43.964Z (4 months ago)
- Topics: atlassian-python-api, automation, github, github-workflow, jira, poetry, python
- Language: Python
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# automatically-create-github-issuea-when-advanced-scanning-detects-an-issue
Automatically created jira issues whenever there is a issue detected by CodeQL analysis# How the code works
![diagram.jpg](diagram.jpg)
* repo.py --> this will retrieve all the repositories in github organization and pass it to github_scanning.py
* github_scanning.py --> basically this will retrieve the dependabot alerts from github
* jira.py --> this file is used for multiple purposes
* retrieve all tasks under a epic
* create task on epic with summary and description* common_utils.py --> character limit for description and summary
* compare tasks in epic and dependabot alters to make sure no duplicate stories are created
* date_time.py --> returns the date time# Parameters
| parameter name | description | required |
|----------------|--------------|---------|
| epic_key | jira epic key | :heavy_check_mark: |
| organization | github organization name | :heavy_check_mark:|# credentials used
`JIRA_PASSWORD`, `JIRA_URL`, `JIRA_USERNAME`, `GH_TOKEN` are used for authentication for `Jira` and `GitHub`
**Poetry is used for package management**
## How to run code in local
* clone the repository and `cd github-automatically-create-jira-issues-when-advanced-scanning-detects-an-issue`
* pass the necessary parameters like `epic_key` and `organization` name```commandline
python3 jira.py --epic_key DEVOPS-245 --organization devwithkrishna
```# This is a proof of concept only