Scan agent-related files changed in a pull request for prompt injection and related threats using unplug-ai (regex-only Guard — no ML download required).
Designed for repos that ship:
AGENTS.md/AGENT.md.cursor/rules,.cursor/hooks.json, MCP configsmcp.json, Claude Desktop MCP settings
name: Unplug agent scan
on:
pull_request:
permissions:
contents: read
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: UnplugAI/unplug-scan-action@v1
with:
base-ref: main| Input | Default | Description |
|---|---|---|
base-ref |
main |
Base branch for git diff origin/<base-ref>...HEAD |
python-version |
3.12 |
Python version |
unplug-version |
>=0.4.0,<0.5 |
PyPI constraint for unplug-ai |
If you develop the SDK in the same repo, use the composite action in UnplugAI/Unplug:
- uses: UnplugAI/Unplug/.github/actions/unplug-scan@dev
with:
base-ref: dev
install-mode: localpip install "unplug-ai>=0.4.0"
unplug-scan-pr --base-ref mainThis repository is published to the GitHub Marketplace as Unplug Agent Scan.
Apache-2.0 — see LICENSE.