Skip to content

Commit

Permalink
litellm sec scans (#7864)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff authored Jan 19, 2025
1 parent c458c7c commit ad4d081
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,22 @@ jobs:
pip install "asyncio==3.4.3"
pip install "PyGithub==1.59.1"
pip install "openai==1.54.0 "
# Run pytest and generate JUnit XML report
- run:
name: Install Grype
command: |
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sudo sh -s -- -b /usr/local/bin
- run:
name: Build and Scan Docker Images
command: |
# Build and scan Dockerfile.database
echo "Building and scanning Dockerfile.database..."
docker build -t litellm-database:latest -f ./docker/Dockerfile.database .
grype litellm-database:latest --fail-on high
# Build and scan main Dockerfile
echo "Building and scanning main Dockerfile..."
docker build -t litellm:latest .
grype litellm:latest --fail-on high
- run:
name: Build Docker image
command: docker build -t my-app:latest -f ./docker/Dockerfile.database .
Expand Down

0 comments on commit ad4d081

Please sign in to comment.