Skip to content

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]

ci: drop regex file guard from OSS daily guardrails

Yuneng Jiangb4d63c1c9fd8
diff --git a/.github/workflows/oss_daily_guardrails.yml b/.github/workflows/oss_daily_guardrails.yml
index 173b7cd4e41..950c51c9b60 100644
--- a/.github/workflows/oss_daily_guardrails.yml
+++ b/.github/workflows/oss_daily_guardrails.yml
@@ -17,65 +17,6 @@ concurrency:
cancel-in-progress: true
jobs:
- sensitive-file-guard:
- name: Block sensitive OSS daily changes
- if: startsWith(github.ref_name, 'litellm_oss_daily_20') || startsWith(github.head_ref, 'litellm_oss_daily_20') || startsWith(github.base_ref, 'litellm_oss_daily_20')
- runs-on: ubuntu-latest
- timeout-minutes: 5
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- with:
- fetch-depth: 0
- ref: ${{ github.event.pull_request.head.sha || github.sha }}
- persist-credentials: false
-
- - name: Check for sensitive file changes
- env:
- EVENT_NAME: ${{ github.event_name }}
- BASE_REF_NAME: ${{ github.base_ref }}
- HEAD_REF_NAME: ${{ github.head_ref }}
- run: |
- set -euo pipefail
-
- if [ "${EVENT_NAME}" = "pull_request" ] && echo "${HEAD_REF_NAME}" | grep -Eq '^litellm_oss_daily_20[0-9]{2}_[0-9]{2}_[0-9]{2}$'; then
- # Final daily OSS branch PR into staging: review only the OSS delta
- # accumulated on top of main, not unrelated main/staging drift.
- BASE_REF="origin/main"
- git fetch origin main
- elif [ "${EVENT_NAME}" = "pull_request" ]; then
- # PR targeting the daily OSS branch: review the incoming PR delta.
- BASE_REF="origin/${BASE_REF_NAME}"
- git fetch origin "${BASE_REF_NAME}"
- else
- # Push to the daily OSS branch: review the accumulated OSS delta.
- BASE_REF="origin/main"
- git fetch origin main
- fi
-
- CHANGED_FILES="$(git diff --name-only "${BASE_REF}...HEAD")"
-
- if [ -z "${CHANGED_FILES}" ]; then
- echo "No changed files detected."
- exit 0
- fi
-
- echo "Changed files:"
- echo "${CHANGED_FILES}"
-
- BLOCKED_FILES="$(
- echo "${CHANGED_FILES}" | grep -E '(^\.github/workflows/|^\.github/actions/|^\.circleci/|^\.cursor/|^Dockerfile$|(^|/)Dockerfile$|^Makefile$|(^|/)Makefile$|(^|/)pyproject\.toml$|(^|/)uv\.lock$|(^|/)poetry\.lock$|(^|/)requirements[^/]*\.txt$|(^|/)package\.json$|(^|/)package-lock\.json$|(^|/)pnpm-lock\.yaml$|(^|/)yarn\.lock$|(^|/)tsconfig[^/]*\.json$|(^|/)(ruff|mypy|pytest|eslint|prettier|vitest|next|vite|jest)\.config\.)' || true
- )"
-
- if [ -n "${BLOCKED_FILES}" ]; then
- echo "::error::OSS daily branch contains sensitive workflow, config, dependency, or lockfile changes. Split these into a separate internal/security-reviewed PR."
- echo "${BLOCKED_FILES}"
- exit 1
- fi
-
- echo "No sensitive OSS daily file changes detected."
-
oss-safe-checks:
name: Run OSS daily safe checks
if: startsWith(github.ref_name, 'litellm_oss_daily_20') || startsWith(github.head_ref, 'litellm_oss_daily_20') || startsWith(github.base_ref, 'litellm_oss_daily_20')