Skip to content

Commit a616081

Browse files
- Fix action to v0.35 version
1 parent 5d8d79b commit a616081

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,9 @@ jobs:
8383
docker build --no-cache --rm -t $GITHUB_REPOSITORY:v0.$GITHUB_RUN_NUMBER -f ./Dockerfile .
8484
8585
- name: Run Trivy vulnerability scanner
86-
env:
87-
IMAGE_TO_SCAN: '$GITHUB_REPOSITORY:v0.$GITHUB_RUN_NUMBER.1'
8886
uses: aquasecurity/trivy-action@master
8987
with:
90-
image-ref: $IMAGE_TO_SCAN
88+
image-ref: '${{ github.repository }}:v0.${{ github.run_number }}'
9189
format: 'sarif'
9290
output: 'trivy-results.sarif'
9391

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM python:3.10-alpine as build
22

33
LABEL maintainer="Fabiano Florentino"
44
LABEL email="[email protected]"
5-
LABEL image version="v0.34"
5+
LABEL image version="v0.35"
66

77
COPY certificate.py api.py settings.py requirements.txt entrypoint.sh /app/
88
COPY config/settings.yml /app/config/settings.yml
@@ -30,4 +30,4 @@ WORKDIR /app
3030

3131
VOLUME ["/app/config"]
3232

33-
ENTRYPOINT ["/app/entrypoint.sh"]
33+
ENTRYPOINT ["/app/entrypoint.sh"]

0 commit comments

Comments
 (0)