İçeriğe geç
YENİPazar yeri ve ekibin: geliştirdiğini sat; planlar ve değişiklikler sen görmeden önce test edilsin. Yeniliklere bak

Kütüphane / Kod, Git ve Geliştirici Araçları

Kod, Git ve Geliştirici Araçları

Detect compromised GitHub dependencies with Gemini and Slack alerts

On a schedule, it automates developer work with Google Gemini using Data Table, GitHub, Slack.

Ne yapar

## Detect compromised open-source packages in GitHub repositories with Gemini and Slack Know within an hour when a hijacked or malicious npm, PyPI or other open-source package lands in any of your GitHub repositories. This workflow checks new GitHub malware and critical advisories against every repository's dependency graph and sends a Slack alert with an AI response plan. ### How it works 1. Runs every hour and creates its own n8n Data Table on the first run to remember what it already reported. 2. Pulls the malware and critical advisories published in the last 7 days from the GitHub Advisory Database. 3. Lists your repositories and downloads each one's dependency graph (SBOM), covering npm, PyPI, Maven, NuGet, Go, RubyGems, Composer, Rust and more. 4. Compares every dependency version with the affected version ranges, so you are only alerted about versions that are really affected. 5. Skips anything already reported, so each problem is alerted once, and re-checks recent advisories on every run to catch packages installed later. 6. Google Gemini writes an incident response plan for each new advisory: what happened, what to do now and how to check whether you were compromised. 7. Sends the alert to Slack, logs every incident in the Data Table and can open GitHub issues in private repositories. ### Setup 1. Create a GitHub personal access token (classic with the repo scope, or fine-grained with Contents: read and Metadata: read, plus Issues: write if you want issues) and select it as the GitHub credential in Fetch Advisories, List Repositories, Get Dependency Graph and Create GitHub Issue. 2. Make sure the dependency graph is enabled in each repository's settings under Code security (it is on by default for public repositories). 3. Open the Settings node and set github_owner to your organization or username, and owner_type to "org" or "user". 4. Add a free Google Gemini API key from aistudio.google.com to the Gemini node. 5. Connect Slack and set your channel in Slack Supply-Chain Alert (default #security-alerts). 6. Click Execute workflow once, then publish the workflow so it runs every hour. ### Requirements - A recent n8n 2.x version (the workflow uses built-in Data Tables) - GitHub personal access token, with the dependency graph enabled on your repositories - Google Gemini API key (the free tier works) - Slack workspace ### Customization - Change lookbac

Adımlar

  1. Every Hour
  2. Settings
  3. Create Incident Table
  4. Load Incidents
  5. Build Advisory Queries
  6. Fetch Advisories
  7. Index Advisories
  8. Any Advisories?
  9. List Repositories
  10. Filter Repositories
  11. Limit Repositories
  12. Get Dependency Graph
  13. Match Dependencies
  14. AI Incident Responder

Toplam 22 adım.

Benzer otomasyonlar