Skip to content
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/build-sts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ jobs:
cd devops/dockerfiles/sts/ && docker build -t $STS_IMAGE_NAME .
#docker build --no-cache -t $STS_IMAGE_NAME -f devops/dockerfiles/sts/Dockerfile .

- name: Run Trivy vulnerability scanner
id: trivy-scan
if: github.event.inputs.trivy_scan == 'true'
env:
REGISTRY_URL: ${{ secrets.AWS_ECR_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
STS_IMAGE_NAME: ${{ secrets.AWS_ECR_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/${{ env.ECR_REPOSITORY}}:${{ env.IMAGE_TAG }}
uses: aquasecurity/trivy-action@master
with:
image-ref: '${{ env.STS_IMAGE_NAME }}'
format: 'table'
exit-code: 1
severity: 'CRITICAL,HIGH'
# - name: Run Trivy vulnerability scanner
# id: trivy-scan
# if: github.event.inputs.trivy_scan == 'true'
# env:
# REGISTRY_URL: ${{ secrets.AWS_ECR_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
Comment thread
knockknockyoo marked this conversation as resolved.
# STS_IMAGE_NAME: ${{ secrets.AWS_ECR_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/${{ env.ECR_REPOSITORY}}:${{ env.IMAGE_TAG }}
# uses: aquasecurity/trivy-action@master
# with:
# image-ref: '${{ env.STS_IMAGE_NAME }}'
# format: 'table'
Comment thread
knockknockyoo marked this conversation as resolved.
# exit-code: 1
# severity: 'CRITICAL,HIGH'

- name: Build STS FAST API image
id: build-sts-fast-api-image
Expand Down
2 changes: 2 additions & 0 deletions devops/dockerfiles/sts-fast-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ EXPOSE 8000/tcp

WORKDIR /app

RUN apk update && apk upgrade

Comment thread
knockknockyoo marked this conversation as resolved.
Outdated
# Install git for pip to clone from GitHub
RUN apk add --no-cache git

Expand Down