Script, which loads all snyk vulnerabilities and creates Bugs in jira.
- Clone repo
- Export the necessary variables - SNYK_API_TOKEN, JIRA_API_TOKEN
- Update the .env with the all necessary values.
- In case you need to exclude folders, insert regex in exclude_files.json in format: { "kubevirt/kubevirt-tekton-tasks": { "^modules/.*/vendor": "" }, "/": { "path_regex": "<empty_string>" } }
- export all these env variables:
# https://docs.snyk.io/snyk-cli/authenticate-the-cli-with-your-account export SNYK_API_TOKEN="" export JIRA_API_TOKEN="""
- run script
python jira-automation.py
- script will go through all snyk vulnerabilities and create Jira bugs