Skip to main content

Automatically create GitHub issues from open Dependabot alerts

Project description

alert2issue

🔐 Automatically create GitHub issues from open Dependabot alerts — complete with severity, CVE info, and tagging.


🚀 What It Does

alert2issue scans a list of GitHub repositories for open Dependabot alerts and creates labeled GitHub issues summarizing the problems.

It helps teams stay on top of security alerts by converting them into visible, actionable tasks.


📦 Features

  • ✅ Lists open Dependabot alerts using the GitHub CLI
  • ✅ Avoids duplicate issues
  • ✅ Auto-labels issues with security and dependabot
  • ✅ Marks alerts with no patch as special warnings
  • ✅ Supports dry-run mode for safe testing
  • ✅ Tested with unit tests and coverage

📦 Installation

Install via PyPI:

pip install alert2issue

Make sure you have the GitHub CLI (gh) installed and authenticated:

gh auth login

⚙️ Usage

Run the tool with a list of repositories (one per line):

alert2issue path/to/repo-list.txt

Options

--dry-run     Run without creating issues or labels (preview only)
--verbose     Print extra info

Example repo list

# Only include public or authorized repos
openai/gym
pallets/flask  # Inline comment OK

✅ Requirements

  • Python 3.8+
  • GitHub CLI (gh)
  • GitHub token with repo scope if using private repositories

🧪 Testing

To run tests:

python -m unittest test_alert2issue.py

With code coverage:

coverage run --source=alert2issue -m unittest discover
coverage report

📈 CI

This project includes a GitHub Actions workflow that runs tests and linting.


🛠 Development Install (optional)

If you want to run it from source:

git clone https://github.com/annejan/alert2issue.git
cd alert2issue
pip install -e .

🙋 Contributing

Pull requests welcome! Open an issue first if you'd like to suggest a major change.


📄 License

MIT License — see LICENSE file.

© 2025 Anne Jan Brouwer

Parts of this project were written with the assistance of ChatGPT, Claude and VLAM.ai.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alert2issue-0.1.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alert2issue-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file alert2issue-0.1.1.tar.gz.

File metadata

  • Download URL: alert2issue-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for alert2issue-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c2a00334886432cf4ed8e810fc11820ac1ed23b207a3b24a296c959514a9c606
MD5 3ed0cb6685a15e140bbc9d0b76070b66
BLAKE2b-256 ce1a0ce12468dc97231a4900f5b052136851a4fb49ea330dc651c4ab17f24edf

See more details on using hashes here.

File details

Details for the file alert2issue-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: alert2issue-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for alert2issue-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d467d98bb49d42db9e82d5188ea68407bbc2f866cd0d220db9517b4b92a7e9a
MD5 faea05cecc14d1ed917279d19b7a0eb4
BLAKE2b-256 da76977f98fd1f9d20e65c7b9dc8e265be78c45f1d4f965bc2e3d1ccf49d48b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page