Библиотека / Код, Git и инструменты разработчика
Код, Git и инструменты разработчика
Detect GitHub Actions supply-chain risks with Gemini and Slack
On a schedule, it automates developer work with Google Gemini using Data Table, GitHub, Slack.
Что делает
## Detect supply-chain risks in GitHub Actions workflows with Gemini and Slack Protect your repositories from GitHub Actions supply-chain attacks. Every day this workflow scans all workflow files in your GitHub organization, flags risky patterns and unpinned actions with exact fixes, has Google Gemini review every new or changed workflow, and alerts your team in Slack. ### How it works 1. Runs every day at 7 AM and creates its own n8n Data Table on the first run, so there is no database or spreadsheet to set up. 2. Lists the repositories in your GitHub organization or account and every file in each .github/workflows folder. 3. Compares each file with the last scan, so only new or changed workflows are downloaded and checked again. 4. Checks each file for the patterns used in recent attacks: unpinned actions, pull_request_target misuse, script injection, dumped or exfiltrated secrets, remote scripts, broad token permissions and risky self-hosted runners. 5. Looks up the exact commit SHA behind every unpinned action, so you get ready-to-paste pinned lines. 6. Google Gemini reviews each new or changed workflow for malicious or suspicious behaviour, and Slack alerts you straight away when something looks wrong. 7. Saves the results to the Data Table and posts a daily Slack digest with an AI summary and priority fixes. It can also 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 List Repositories, List Workflow Files, Fetch Workflow File, Resolve Pinned SHAs and Create GitHub Issue. 2. Open the Settings node and set github_owner to your organization or username, and owner_type to "org" or "user". 3. Add a free Google Gemini API key from aistudio.google.com to both Gemini nodes. 4. Connect Slack and set your channel in Slack Security Alert and Post Daily Digest (default #security-alerts). 5. Click Execute workflow once to save a baseline, then publish the workflow so it runs every day. ### Requirements - A recent n8n 2.x version (the workflow uses built-in Data Tables) - GitHub personal access token - Google Gemini API key (the free tier works) - Slack workspace ### Customization - Change the schedule in the Every Day 7 AM node. Running every few hours ca
Шаги
- Every Day 7 AM
- Settings
- Create Inventory Table
- Load Inventory
- List Repositories
- Filter Repositories
- Limit Repositories
- List Workflow Files
- Keep YAML Files
- Classify Changes
- Changed?
- Fetch Workflow File
- Audit Rules
- Build Pin Query
Всего шагов: 34.
Похожие автоматизации
RAG и базы знанийМониторинг задержек в цепочке поставок с OpenAI RAGШагов: 10Мониторинг, эксплуатация и инцидентыОценка рисков снабжения с Groq, Notion, Slack и GmailШагов: 28ИИ-агенты и ассистентыАгент диспетчерской цепочки поставок с BigQuery и GPTШагов: 8Код, Git и инструменты разработчикаDetect compromised GitHub dependencies with Gemini and Slack alertsШагов: 22