Skip to content

Add mcp-safety-scanner CI (baseline)#3295

Open
TheodorNEngoy wants to merge 7 commits intomodelcontextprotocol:mainfrom
TheodorNEngoy:codex/mcp-safety-scan
Open

Add mcp-safety-scanner CI (baseline)#3295
TheodorNEngoy wants to merge 7 commits intomodelcontextprotocol:mainfrom
TheodorNEngoy:codex/mcp-safety-scan

Conversation

@TheodorNEngoy
Copy link

Adds a lightweight MCP/tool-server safety scan in CI using TheodorNEngoy/mcp-safety-scanner@v0.

  • Scans src for common footguns (CORS allow-all/reflect, eval/exec, etc.)
  • Uses a committed baseline (.mcp-safety-baseline.json) to avoid noisy legacy findings
  • CI fails only on high+ severity (medium/low show as annotations)

Refresh baseline (no Node required):
docker run --rm -v "/tmp/mcp-servers.2eGvhp:/repo" ghcr.io/theodornengoy/mcp-safety-scanner:v0 /repo/src --write-baseline /repo/.mcp-safety-baseline.json --fail-on=none

@TheodorNEngoy
Copy link
Author

FYI: This adds an MCP security scan workflow using TheodorNEngoy/mcp-safety-scanner@v0 (no secrets). It runs against src/ with a checked-in baseline to avoid legacy noise, and fails CI only on new high-severity findings.\n\nHappy to adjust the baseline scope or pin to a specific tag if you prefer.

@TheodorNEngoy
Copy link
Author

Update: I pinned the workflow to an immutable commit SHA for supply-chain safety (commented with the corresponding version), and set for a read-only token.

@TheodorNEngoy
Copy link
Author

(clarification) Also set GitHub Actions workflow permissions to contents: read (read-only GITHUB_TOKEN).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant