# Security Quick Reference Card Quick reference for common security tasks in OpenRabbit development. ## ❌ Common Security Mistakes ### 1. Exposing Full Webhook Data ```yaml # ❌ NEVER DO THIS env: EVENT_DATA: ${{ toJSON(github.event) }} # Exposes emails, tokens! ``` ### 2. Unvalidated User Input ```python # ❌ NEVER DO THIS owner, repo = repo_string.split('/') # No validation! ``` ### 3. Hardcoded Secrets ```python # ❌ NEVER DO THIS api_key = "sk-1234567890abcdef" # Hardcoded secret! ``` --- ## ✅ Secure Patterns ### 1. Workflow Event Handling ```yaml # ✅ Use minimal data extraction run: | EVENT_DATA=$(cat <