From cceeb2261b385243a12da9392fdb54f3fb51b1eb Mon Sep 17 00:00:00 2001 From: Sam Leeflang Date: Mon, 24 Jun 2024 08:50:09 +0200 Subject: [PATCH] Fix trivy issues / build file --- .github/workflows/build.yaml | 5 +---- Dockerfile | 2 +- requirements.txt | 2 -- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4a5a3f8..0418a08 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 @@ -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: diff --git a/Dockerfile b/Dockerfile index 6d7c82d..759c51f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/requirements.txt b/requirements.txt index c63bb25..086655a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,3 @@ -cow_csvw -csvkit flask Frozen-Flask markdown2