Skip to content

Commit

Permalink
fix trivy error on vulnerability testing (#1843)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis authored Nov 8, 2024
1 parent 09423fb commit 9e87184
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/vulnerabilities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
working-directory: .
steps:
- name: Checkout pygeoapi
uses: actions/checkout@v4
uses: actions/checkout@master
- name: Scan vulnerabilities with trivy
uses: aquasecurity/trivy-action@master
with:
Expand All @@ -37,6 +37,9 @@ jobs:
docker buildx build -t ${{ github.repository }}:${{ github.sha }} --platform linux/amd64 --no-cache -f Dockerfile .
- name: Scan locally built Docker image for vulnerabilities with trivy
uses: aquasecurity/trivy-action@master
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1
with:
scan-type: image
exit-code: 1
Expand Down

0 comments on commit 9e87184

Please sign in to comment.