https://github.com/anchore/anchore-shift-left-automation
https://github.com/anchore/anchore-shift-left-automation
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/anchore/anchore-shift-left-automation
- Owner: anchore
- Created: 2024-10-10T20:33:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-10T20:35:03.000Z (almost 2 years ago)
- Last Synced: 2025-09-19T14:23:21.700Z (11 months ago)
- Language: Python
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# anchore-shift-left-automation
This repository has examples for a shift-left implementation of Anchore with GitLab and Jira for an automated workflow
# How to run the generate_policy_tickets_jira.py script
Jira Ticket Generator
The script in its current state will generate Jira tickets from STOP actions in Anchore policy results for a single SBOM in Anchore.
## Usage
### ENV variables
The following environment variables need to be set alongside a functional `anchorectl` connection in order for the script to function:
```
JIRA_API_USER="tests@test.com"
JIRA_API_AUTH_TOKEN="TOKEN12345678910"
JIRA_URL="https://your-domain.atlassian.net"
JIRA_PROJECT_KEY="SAT"
IMAGE="image-repo:tag"
```
### Running the script
The script can be run after setting the environment variables by running `python3 generate_tickets.py`