Skip to content

Commit

Permalink
Fix trivy issues / build file
Browse files Browse the repository at this point in the history
  • Loading branch information
samleeflang committed Jun 24, 2024
1 parent 4756ad5 commit cceeb22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: set lower case $REPO_LC name
run: |
echo "REPO_LC=${REPO,,}" >> ${GITHUB_ENV}
env:
REPO: '${{ github.event.repository.name }}'
- name: Login to Public ECR
Expand All @@ -27,7 +24,7 @@ jobs:
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Build image
run: |
docker build -t $REPO_LC data-model/
docker build -t ${{ github.event.repository.name }} .
- name: Trivy - List all vulnerabilities
uses: aquasecurity/trivy-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# set base image (host OS)
FROM python:3.11-slim
FROM python:3.12-alpine

# set the working directory in the container
WORKDIR /code
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cow_csvw
csvkit
flask
Frozen-Flask
markdown2
Expand Down

0 comments on commit cceeb22

Please sign in to comment.