Skip to content

fix(docker): pin root Dockerfile base images by digest - #63

Merged
shudonglin merged 1 commit into
litellm_internal_stagingfrom
fix/pin-root-dockerfile-images
Jun 13, 2026
Merged

shudonglin merged 1 commit into
litellm_internal_stagingfrom
fix/pin-root-dockerfile-images

Conversation

@shudonglin

Copy link
Copy Markdown

Title

fix(docker): pin root Dockerfile base images by digest

Relevant issues

Resolves Scorecard code-scanning alert BerriAI#1008 (PinnedDependenciesID, medium) on the root Dockerfile.

Pre-Submission checklist

The root Dockerfile is the image litellm-build-push.yml builds and deploys to Cloud Run, yet its three FROM lines used ARG-variable references ($UV_IMAGE, $LITELLM_BUILD_IMAGE, $LITELLM_RUNTIME_IMAGE) that Scorecard flags as not pinned by hash. Each is replaced with the literal image@sha256 digest already set as that ARG's default, so the resolved images and build behavior are byte-identical; only the static-analysis signal changes. This matches the existing digest pins on backend/Dockerfile, gateway/Dockerfile, and migrations/Dockerfile, and is now tracked in .github/fork-patches.txt so -X theirs upstream syncs re-pin it.

Type

🐛 Bug Fix

Proof

docker build --check -f Dockerfile . reports "Check complete, no warnings found" with the pinned digests resolving correctly

🤖 Generated with OpenClaw

The root Dockerfile is the image litellm-build-push.yml deploys to Cloud Run,
and its three FROM lines used ARG-variable references ($UV_IMAGE,
$LITELLM_BUILD_IMAGE, $LITELLM_RUNTIME_IMAGE) which Scorecard flags as
unpinned (PinnedDependenciesID, alert BerriAI#1008). Replace each with the literal
image@sha256 digest already set as the ARG default, matching the existing
backend/gateway/migrations Dockerfile pins; build behavior is unchanged.
Tracked in fork-patches.txt so -X theirs syncs re-pin it
@shudonglin
shudonglin merged commit 0211b31 into litellm_internal_staging Jun 13, 2026
73 of 75 checks passed
@shudonglin
shudonglin deleted the fix/pin-root-dockerfile-images branch June 13, 2026 16:37
shudonglin added a commit that referenced this pull request Nov 26, 2026
…alse positives (#402)

Resolve alerts #62 and #63 against the same litellm.log debug log upstream
already removed as a trivy false positive (BerriAI#13631): a local SSO login JWT
that embeds that dev proxy's own generated virtual key, not an externally
reachable credential.

Alerts #83 (litellm_results.jsonl) and #84 (litellm/proxy/api_log.json)
contain real-looking third-party provider key formats and are left open,
reported for owner review and rotation rather than resolved here.

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant