mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
Bumps the github-actions group with 23 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.2.2` | `7.0.1` | | [github/codeql-action/init](https://github.com/github/codeql-action) | `4.38.2` | `4.39.5` | | [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.38.2` | `4.39.5` | | [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) | `4.35.1` | `4.39.5` | | [actions/setup-python](https://github.com/actions/setup-python) | `5.6.0` | `7.1.0` | | [CodSpeedHQ/action](https://github.com/codspeedhq/action) | `4.12.1` | `5.8.0` | | [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) | `6.1.1` | `6.1.4` | | [actions/github-script](https://github.com/actions/github-script) | `7.0.1` | `9.0.0` | | [openai/codex-action](https://github.com/openai/codex-action) | `1.9` | `1.14` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.6.1` | `7.0.2` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4.3.0` | `8.0.2` | | [linear/linear-release-action](https://github.com/linear/linear-release-action) | `0.18.0` | `0.18.3` | | [actions/cache](https://github.com/actions/cache) | `4.3.0` | `6.1.0` | | [actions/cache/restore](https://github.com/actions/cache) | `4.3.0` | `6.1.0` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.4.1` | `2.6.0` | | [actions/stale](https://github.com/actions/stale) | `8.0.0` | `11.0.0` | | [actions/setup-node](https://github.com/actions/setup-node) | `5.0.0` | `7.1.0` | | [codecov/codecov-action](https://github.com/codecov/codecov-action) | `5.5.5` | `7.1.1` | | [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) | `2.9.2` | `2.9.3` | | [taiki-e/install-action](https://github.com/taiki-e/install-action) | `2.87.8` | `2.90.8` | | [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) | `3.1.2` | `4.0.1` | | [actions/setup-go](https://github.com/actions/setup-go) | `6.2.0` | `7.1.0` | | [azure/setup-helm](https://github.com/azure/setup-helm) | `4.3.1` | `5.1.0` | Updates `actions/checkout` from 4.2.2 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.2.2...3d3c42e5aac5ba805825da76410c181273ba90b1) Updates `github/codeql-action/init` from 4.38.2 to 4.39.5 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](2892aa5e19...915412ff23) Updates `github/codeql-action/analyze` from 4.38.2 to 4.39.5 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](2892aa5e19...915412ff23) Updates `github/codeql-action/upload-sarif` from 4.35.1 to 4.39.5 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v4.35.1...915412ff23e8b7659517e607487dbeae018f2934) Updates `actions/setup-python` from 5.6.0 to 7.1.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](a26af69be9...6d4fd22b20) Updates `CodSpeedHQ/action` from 4.12.1 to 5.8.0 - [Release notes](https://github.com/codspeedhq/action/releases) - [Changelog](https://github.com/CodSpeedHQ/action/blob/main/CHANGELOG.md) - [Commits](1c8ae48435...b1f28b5ecc) Updates `amannn/action-semantic-pull-request` from 6.1.1 to 6.1.4 - [Release notes](https://github.com/amannn/action-semantic-pull-request/releases) - [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md) - [Commits](48f256284b...66e72920af) Updates `actions/github-script` from 7.0.1 to 9.0.0 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v7.0.1...3a2844b7e9c422d3c10d287c895573f7108da1b3) Updates `openai/codex-action` from 1.9 to 1.14 - [Changelog](https://github.com/openai/codex-action/blob/main/CHANGELOG.md) - [Commits](10cb888d2e...306c6a196a) Updates `actions/upload-artifact` from 4.6.1 to 7.0.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](4cec3d8aa0...cf430e030d) Updates `actions/download-artifact` from 4.3.0 to 8.0.2 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](d3f86a106a...9000827ccb) Updates `linear/linear-release-action` from 0.18.0 to 0.18.3 - [Release notes](https://github.com/linear/linear-release-action/releases) - [Commits](d4af100929...cfd42077dc) Updates `actions/cache` from 4.3.0 to 6.1.0 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0057852bfa...55cc834586) Updates `actions/cache/restore` from 4.3.0 to 6.1.0 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0057852bfa...55cc834586) Updates `ossf/scorecard-action` from 2.4.1 to 2.6.0 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](f49aabe0b5...23f22cd436) Updates `actions/stale` from 8.0.0 to 11.0.0 - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](1160a22402...4391f3da66) Updates `actions/setup-node` from 5.0.0 to 7.1.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](a0853c2454...949feb2413) Updates `codecov/codecov-action` from 5.5.5 to 7.1.1 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](0fb7174895...303a32d7a5) Updates `Swatinem/rust-cache` from 2.9.2 to 2.9.3 - [Release notes](https://github.com/swatinem/rust-cache/releases) - [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md) - [Commits](6323deb102...d1527c8f67) Updates `taiki-e/install-action` from 2.87.8 to 2.90.8 - [Release notes](https://github.com/taiki-e/install-action/releases) - [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md) - [Commits](d438492cf8...fe3acb53a9) Updates `hashicorp/setup-terraform` from 3.1.2 to 4.0.1 - [Release notes](https://github.com/hashicorp/setup-terraform/releases) - [Changelog](https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md) - [Commits](b9cd54a3c3...dfe3c3f878) Updates `actions/setup-go` from 6.2.0 to 7.1.0 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](7a3fe6cf4c...d8cbb8045d) Updates `azure/setup-helm` from 4.3.1 to 5.1.0 - [Release notes](https://github.com/azure/setup-helm/releases) - [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md) - [Commits](1a275c3b69...2f5e7bc67f) --- updated-dependencies: - dependency-name: actions/cache dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/cache/restore dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/download-artifact dependency-version: 8.0.2 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/github-script dependency-version: 9.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-go dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: 7.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-python dependency-version: 7.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/stale dependency-version: 11.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.2 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: amannn/action-semantic-pull-request dependency-version: 6.1.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: azure/setup-helm dependency-version: 5.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: codecov/codecov-action dependency-version: 7.1.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: CodSpeedHQ/action dependency-version: 5.6.3 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: github/codeql-action/analyze dependency-version: 4.39.3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: github/codeql-action/init dependency-version: 4.39.3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: github/codeql-action/upload-sarif dependency-version: 4.39.3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: hashicorp/setup-terraform dependency-version: 4.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: linear/linear-release-action dependency-version: 0.18.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: openai/codex-action dependency-version: '1.13' dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: ossf/scorecard-action dependency-version: 2.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: Swatinem/rust-cache dependency-version: 2.9.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: taiki-e/install-action dependency-version: 2.90.5 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
176 lines
7 KiB
YAML
176 lines
7 KiB
YAML
name: Image Scan
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "5 8-20/3 * * 1-6"
|
|
timezone: America/Los_Angeles
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
IMAGE: litellm-image-scan:${{ github.sha }}
|
|
ADMIN_MCP_SCHEMA_IMAGE: litellm-admin-mcp-schema:${{ github.sha }}
|
|
|
|
jobs:
|
|
build:
|
|
name: build
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Build the image
|
|
run: docker build -f litellm/deploy/docker/Dockerfile --build-arg MATURIN_PEP517_ARGS="--profile ci" --build-arg LITELLM_RELEASE_TAG=v0.0.0-lens-ci -t "$IMAGE" .
|
|
|
|
- name: Save the image for the verify matrix
|
|
run: docker save "$IMAGE" | zstd -T0 -3 -o "$RUNNER_TEMP/litellm-image.tar.zst"
|
|
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: litellm-image
|
|
path: ${{ runner.temp }}/litellm-image.tar.zst
|
|
retention-days: 1
|
|
compression-level: 0
|
|
|
|
- name: Build the Admin MCP schema image
|
|
run: docker build -f litellm/deploy/docker/Dockerfile --build-arg MATURIN_PEP517_ARGS="--profile ci" --build-arg LITELLM_RELEASE_TAG=v0.0.0-lens-ci --target builder -t "$ADMIN_MCP_SCHEMA_IMAGE" .
|
|
|
|
- name: Save the Admin MCP schema image for the verify matrix
|
|
run: docker save "$ADMIN_MCP_SCHEMA_IMAGE" | zstd -T0 -3 -o "$RUNNER_TEMP/litellm-admin-mcp-schema.tar.zst"
|
|
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: litellm-admin-mcp-schema
|
|
path: ${{ runner.temp }}/litellm-admin-mcp-schema.tar.zst
|
|
retention-days: 1
|
|
compression-level: 0
|
|
|
|
verify:
|
|
name: verify (${{ matrix.check }})
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
permissions:
|
|
contents: read
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
check: [scan, migrations, gateway, backend, ui, collector]
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
with:
|
|
name: litellm-image
|
|
path: ${{ runner.temp }}
|
|
|
|
- name: Load the image
|
|
run: zstd -d --stdout "$RUNNER_TEMP/litellm-image.tar.zst" | docker load
|
|
|
|
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
if: matrix.check == 'migrations' || matrix.check == 'backend'
|
|
with:
|
|
name: litellm-admin-mcp-schema
|
|
path: ${{ runner.temp }}
|
|
|
|
- name: Load the Admin MCP schema image
|
|
if: matrix.check == 'migrations' || matrix.check == 'backend'
|
|
run: zstd -d --stdout "$RUNNER_TEMP/litellm-admin-mcp-schema.tar.zst" | docker load
|
|
|
|
- name: Set up Python
|
|
if: matrix.check != 'scan'
|
|
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install pytest
|
|
if: matrix.check != 'scan'
|
|
run: python -m pip install "pytest==9.0.3"
|
|
|
|
# The prisma bake must migrate a fresh DB with no egress as an arbitrary
|
|
# non-root uid (OpenShift restricted-v2 / air-gapped / readOnlyFilesystem).
|
|
# `docker run` as the default uid with network hides a broken bake because
|
|
# the migration entrypoint exits 0 even when it applied nothing; asserting
|
|
# the schema was created is what catches it.
|
|
- name: Verify offline migration as a non-root uid
|
|
if: matrix.check == 'migrations'
|
|
env:
|
|
LITELLM_IMAGE: ${{ env.IMAGE }}
|
|
LITELLM_ADMIN_MCP_SCHEMA_IMAGE: ${{ env.ADMIN_MCP_SCHEMA_IMAGE }}
|
|
run: |
|
|
python -m pytest --noconftest -v \
|
|
tests/integration/database/image/test_offline_image_migration.py \
|
|
tests/integration/database/image/test_image_bedrock_realtime_extra.py \
|
|
tests/integration/database/image/test_image_admin_mcp.py
|
|
|
|
- name: Verify the gateway component serves offline as a non-root uid
|
|
if: matrix.check == 'gateway'
|
|
env:
|
|
LITELLM_IMAGE: ${{ env.IMAGE }}
|
|
LITELLM_COMPONENT: gateway
|
|
LITELLM_IMAGE_COMPONENT: gateway
|
|
run: |
|
|
python -m pytest --noconftest -v \
|
|
tests/integration/database/image/test_component_image_serves_offline.py \
|
|
tests/integration/database/image/test_image_admin_mcp.py
|
|
|
|
- name: Verify the backend component serves offline as a non-root uid
|
|
if: matrix.check == 'backend'
|
|
env:
|
|
LITELLM_IMAGE: ${{ env.IMAGE }}
|
|
LITELLM_COMPONENT: backend
|
|
LITELLM_IMAGE_COMPONENT: backend
|
|
LITELLM_ADMIN_MCP_SCHEMA_IMAGE: ${{ env.ADMIN_MCP_SCHEMA_IMAGE }}
|
|
run: |
|
|
python -m pytest --noconftest -v \
|
|
tests/integration/database/image/test_component_image_serves_offline.py \
|
|
tests/integration/database/image/test_image_admin_mcp.py
|
|
|
|
- name: Verify the ui component serves as an arbitrary uid with a read-only root fs
|
|
if: matrix.check == 'ui'
|
|
env:
|
|
LITELLM_IMAGE: ${{ env.IMAGE }}
|
|
run: python -m pytest --noconftest -v tests/integration/database/image/test_ui_image_serves_offline.py
|
|
|
|
- name: Verify the collector creates its socket as the image user
|
|
if: matrix.check == 'collector'
|
|
env:
|
|
LITELLM_IMAGE: ${{ env.IMAGE }}
|
|
run: python -m pytest --noconftest -v tests/integration/database/image/test_collector_image_serves_socket.py
|
|
|
|
- name: Download Grype v0.114.0
|
|
if: matrix.check == 'scan'
|
|
run: |
|
|
curl -fsSL --retry 3 -o "$RUNNER_TEMP/grype.tar.gz" \
|
|
https://github.com/anchore/grype/releases/download/v0.114.0/grype_0.114.0_linux_amd64.tar.gz
|
|
echo "edda0968d8827daab01d32b3cd7de192ae0915005e7bbfcfef9e68e79bc43343 $RUNNER_TEMP/grype.tar.gz" | sha256sum -c -
|
|
tar xzf "$RUNNER_TEMP/grype.tar.gz" -C "$RUNNER_TEMP" grype
|
|
chmod +x "$RUNNER_TEMP/grype"
|
|
|
|
# Scans the whole shipped artifact: OS/apk plus every language package
|
|
# baked into the image, including ones no lockfile declares (e.g. prisma's
|
|
# vendored node engine) that osv-scan cannot see. osv-scan stays the fast
|
|
# source-level gate; this is the customer's-eye-view backstop. Credential-
|
|
# free OSS, run as a pinned, checksum-verified binary; no GitHub Action
|
|
# dependency and no vendor SaaS callout.
|
|
- name: Scan image for fixable HIGH/CRITICAL CVEs
|
|
if: matrix.check == 'scan'
|
|
env:
|
|
GRYPE_MATCH_PYTHON_USING_CPES: "true"
|
|
run: |
|
|
"$RUNNER_TEMP/grype" "$IMAGE" \
|
|
--config .github/grype.yaml \
|
|
--only-fixed \
|
|
--fail-on high \
|
|
--output table
|