Skip to content

Commit

Permalink
Test new trivy db (#27)
Browse files Browse the repository at this point in the history
* Test new trivy db

* Test back without new db repo

* Test new trivy db

* Test envs

* switch db repo

* use correct trivy action :/

* switch db repo

* Add new java trivy db too

* Remove ref to branch
  • Loading branch information
M-Schiborr authored Oct 29, 2024
1 parent a5aceb8 commit 0cb188a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/check-trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
severity: ${{ inputs.severity }}
exit-code: ${{ inputs.fail_on_vulnerabilites && 1 || 0}}
ignore-unfixed: ${{ inputs.ignore-unfixed }}
env:
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db

- name: Override location of findings
if: ${{ always() && inputs.report_location != '' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/image-publish-trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ jobs:
permissions:
packages: read
security-events: write
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/check-trivy.yaml@5
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/check-trivy.yaml@7
with:
image_ref: ${{ needs.pre_scan.outputs.registry_and_owner }}/${{ inputs.image_name }}@${{ needs.build_and_upload_image.outputs.digest }}
severity: ${{ inputs.trivy_severity }}
Expand Down

0 comments on commit 0cb188a

Please sign in to comment.