Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Code, Git & Developer Tools

Code, Git & Developer Tools

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.

What it does

## 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

The steps

  1. Every Day 7 AM
  2. Settings
  3. Create Inventory Table
  4. Load Inventory
  5. List Repositories
  6. Filter Repositories
  7. Limit Repositories
  8. List Workflow Files
  9. Keep YAML Files
  10. Classify Changes
  11. Changed?
  12. Fetch Workflow File
  13. Audit Rules
  14. Build Pin Query

34 steps in total.

Similar automations