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


🛠 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.0.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.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alert2issue-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9db864905f6623e9d2985eb55095a150e2a47c9646c60008f6278ba28534c323
MD5 32045873697d48641288121e862a44fe
BLAKE2b-256 3b7b2f19936a7ce9755a1f18925e25c9bb422a1fb5a88456cbf4b09b81842a44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alert2issue-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94f1dc589fdc2d0983e34278219eb7a3a861b296cb97da27b78155be11fec7fa
MD5 223a553d2c37a9ad5a88ca2b491a8ab9
BLAKE2b-256 54d55bbf19859408afe6b2ede8e8576e49554c8c25eb97e8661d0e2d01e2fc40

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