GitHub Security tab workflow
MCP Code Scanning GitHub Action
Add a free Agent/MCP scanner to GitHub Code Scanning. The workflow runs the heuristic scanner with SARIF 2.1.0 output, uploads findings to the Security tab, and keeps the fixed USD $1,000 human audit path one click away for launch-blocking risks.
Copy workflow
Upload MCP scan findings to Code Scanning
Save this as .github/workflows/agent-mcp-code-scanning.yml. It checks TypeScript, JavaScript, Python, Go, Rust, Markdown, package metadata, and workflow changes, then uploads SARIF through GitHub's supported action.
name: Agent/MCP Code Scanning
on:
workflow_dispatch:
pull_request:
paths:
- "**/*.ts"
- "**/*.tsx"
- "**/*.js"
- "**/*.mjs"
- "**/*.py"
- "**/*.go"
- "**/*.rs"
- "**/*.md"
- "package.json"
- ".github/workflows/**"
jobs:
audit:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- uses: jackjin1997/agent-mcp-code-scan-action@v1
with:
path: "."
sarif: "true"
output: "agent-mcp-audit.sarif"
- uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: agent-mcp-audit.sarif
What appears
Findings become reviewable security alerts
The SARIF output maps scanner findings into GitHub's security interface with rule names, severity levels, file evidence, and help links back to the free scanner and paid audit handoff.
Action repository
Install the standalone scanner action
The action-only repository keeps installation, support, issue templates, and the stable v1 tag focused on GitHub Actions users. Its smoke workflow verifies both Markdown and SARIF output from the public tag.
Local command
Generate SARIF without GitHub Actions
The same scanner can emit SARIF locally for a repo folder. This is useful for private review, CI systems outside GitHub, or attaching a scan artifact to an audit request.
node tools/agent-mcp-audit.mjs /path/to/repo --sarif > agent-mcp-audit.sarif
Human review
When SARIF is not enough
- Use the workflow for free triage before launch or before opening a paid audit request.
- Attach the generated SARIF, workflow run, GitHub Security alert, or Markdown scanner report to the code scanning audit intake.
- Confirm scope for one repo or product slice before any payment is sent.
- Pay USD $1,000 only after written scope acceptance; delivery starts after payment confirmation.