Repository navigation
Fix container scan vulnerabilities (#173) - #175
Merged
Merged
Conversation
ritiksah141
requested review from
m-khan-97
and removed request for
parthrohit22
July 11, 2026 17:02
Vishnu2707
approved these changes
Jul 11, 2026
Vishnu2707
left a comment
Collaborator
There was a problem hiding this comment.
Approved, address the vul.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remediates the fixable HIGH and CRITICAL vulnerabilities reported by the Trivy container scan. Closes #173 by removing the unused vulnerable Transformer stack, updating packaging tools, refreshing the base image, and preventing local development dependencies from entering the production image.
Before merging
No repository administrator action is required for this PR.
What changed
Python dependency remediation
sentence-transformersdependency and its vulnerabletransformersand PyTorch dependency chain.cryptographyrequirement.Container hardening
python:3.11-slim-bookwormtopython:3.11-slim-trixie.jaraco.contextand wheel are replaced..dockerignorerules that prevent virtual environments, Node dependencies, secrets, logs, caches, and local vector stores from entering the production image.CI security gate
Tests
Notes for reviewers
sentence-transformersortransformers. ChromaDB 0.4.24 supplies the default ONNX embedding implementation used byai/embed.pyandai/retriever.py.Local verification
ruff check .ruff format --check .transformersandsentence_transformersare absent.ONNXMiniLM_L6_V2.Files to review
Dockerfilerequirements.txt.dockerignore.github/workflows/ci.ymltests/test_rag_dependencies.py