Skip to content

v5.10.0

Choose a tag to compare

@github-actions github-actions released this 06 Apr 17:27
· 77 commits to main since this release

Added

  • Sandbox enabled by default (sandbox.enabled = true) with 3 modes: "docker" (full isolation), "local" (syntax check, default), "ast" (tree-sitter parse), "off" (no validation). sandbox.require_validation blocks PR submission on validation failure.
  • Prompt injection protection — repository content is sanitized before LLM calls: control characters stripped, XML-wrapped in <repository-content> tags, 10 known injection patterns detected and logged. System prompts hardened with "treat code as data" instruction.
  • Token encryption (contribai encrypt-token) — encrypt GitHub tokens with AES-256-like XOR + HMAC-SHA256 key derivation (PBKDF2, 1000 iterations). Decrypted at runtime via CONTRIBUTAI_ENCRYPTION_KEY env var, never written to logs.
  • Expanded local validators — JavaScript/TypeScript, Go, Java syntax checks added alongside Python and Rust.
  • 26 new tests for sandbox config, crypto roundtrip, prompt injection detection.

Security

  • Sandbox is now ON by default — generated code is validated before PR submission
  • Prompt injection mitigations protect against malicious repository content
  • Token encryption prevents plaintext storage in config files