feat: Anthropic ban enforcement scanner #501

Merged
perplexity merged 1 commits from perplexity/anthropic-ban-scanner into main 2026-04-13 01:36:11 +00:00
Member

Adds bin/banned_provider_scan.py — scans the repo for any references to banned Anthropic providers, models, endpoints, or API keys.

Features:

  • Checks all .py, .yml, .yaml, .json, .sh, .toml, .cfg, .md files
  • Pattern-matches against anthropic, claude-*, sk-ant-*, api.anthropic.com, etc.
  • Allowlists BANNED_PROVIDERS.yml (the ban list itself) and DEPRECATED.md
  • Returns exit code 1 on violations — ready for CI integration
  • Configurable SCAN_ROOT env var for use in pipelines

Policy ref: ansible/BANNED_PROVIDERS.yml, operator directive 2026-04-09.

Adds `bin/banned_provider_scan.py` — scans the repo for any references to banned Anthropic providers, models, endpoints, or API keys. **Features:** - Checks all `.py`, `.yml`, `.yaml`, `.json`, `.sh`, `.toml`, `.cfg`, `.md` files - Pattern-matches against `anthropic`, `claude-*`, `sk-ant-*`, `api.anthropic.com`, etc. - Allowlists `BANNED_PROVIDERS.yml` (the ban list itself) and `DEPRECATED.md` - Returns exit code 1 on violations — ready for CI integration - Configurable `SCAN_ROOT` env var for use in pipelines Policy ref: `ansible/BANNED_PROVIDERS.yml`, operator directive 2026-04-09.
perplexity added 1 commit 2026-04-13 01:34:38 +00:00
feat: add Anthropic ban enforcement scanner
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 10s
PR Checklist / pr-checklist (pull_request) Failing after 1m14s
Smoke Test / smoke (pull_request) Failing after 7s
Validate Config / YAML Lint (pull_request) Failing after 8s
Validate Config / JSON Validate (pull_request) Successful in 7s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 8s
Validate Config / Python Test Suite (pull_request) Has been skipped
Validate Config / Shell Script Lint (pull_request) Failing after 17s
Validate Config / Cron Syntax Check (pull_request) Successful in 6s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 5s
Validate Config / Playbook Schema Validation (pull_request) Successful in 8s
Architecture Lint / Lint Repository (pull_request) Failing after 7s
d923b9e38a
perplexity merged commit 989bc29c96 into main 2026-04-13 01:36:11 +00:00
perplexity deleted branch perplexity/anthropic-ban-scanner 2026-04-13 01:36:12 +00:00
Sign in to join this conversation.