The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Also reject PRs from forks, not just non-allowlisted branches
Yuneng Jiangd9b89bc2cafb
diff --git a/.github/workflows/guard-main-branch.yml b/.github/workflows/guard-main-branch.ymlindex a3a1f33fb24..3a84380e711 100644--- a/.github/workflows/guard-main-branch.yml+++ b/.github/workflows/guard-main-branch.yml@@ -25,8 +25,15 @@ jobs:- name: Check head branch nameenv:HEAD_REF: ${{ github.head_ref }}+ HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}+ BASE_REPO: ${{ github.repository }}run: |+ echo "PR head repo: $HEAD_REPO"echo "PR head branch: $HEAD_REF"+ if [ "$HEAD_REPO" != "$BASE_REPO" ]; then+ echo "::error::PRs to main must originate from the canonical repository ($BASE_REPO), not a fork ($HEAD_REPO)."+ exit 1+ fiif [ "$HEAD_REF" = "litellm_internal_staging" ] || [[ "$HEAD_REF" == litellm_hotfix_?* ]]; thenecho "Allowed source branch."exit 0