Skip to content

Commit 9e87184

Browse files
authored
fix trivy error on vulnerability testing (#1843)
1 parent 09423fb commit 9e87184

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/vulnerabilities.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
working-directory: .
2323
steps:
2424
- name: Checkout pygeoapi
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@master
2626
- name: Scan vulnerabilities with trivy
2727
uses: aquasecurity/trivy-action@master
2828
with:
@@ -37,6 +37,9 @@ jobs:
3737
docker buildx build -t ${{ github.repository }}:${{ github.sha }} --platform linux/amd64 --no-cache -f Dockerfile .
3838
- name: Scan locally built Docker image for vulnerabilities with trivy
3939
uses: aquasecurity/trivy-action@master
40+
env:
41+
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
42+
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1
4043
with:
4144
scan-type: image
4245
exit-code: 1

0 commit comments

Comments
 (0)