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 -m unittest
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.2.0.tar.gz (5.6 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.2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for alert2issue-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0c892d8bebab7be315f51aef387b65033ff46e8f8f7dc4f7a8d975dd4ec3071c
MD5 c352c50269f0c4567a03a5aa98f5fbd9
BLAKE2b-256 191ebdc9632d5714d79ea5531501d38bb853dcb537eb58119f58c8f1000512b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alert2issue-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 077ae95f82d9e7351edfee77d962c9039880db4b63ebf487396808ea8d9be13d
MD5 5104037d20782590188230c719ef7b5b
BLAKE2b-256 44afa9eeb8eea8a64ed3fc1ae41f04fc98371f1018ee34ad8cabe5721a057b49

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