mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:35:49 +00:00
replace Trivy with JFrog SCA
This commit is contained in:
parent
a40c036578
commit
e30adc1e95
1 changed files with 7 additions and 12 deletions
19
.github/workflows/maven-build.yml
vendored
19
.github/workflows/maven-build.yml
vendored
|
@ -60,15 +60,10 @@ jobs:
|
||||||
jf rt build-publish
|
jf rt build-publish
|
||||||
|
|
||||||
- name: Scan the project with your preferred SCA tool
|
- name: Scan the project with your preferred SCA tool
|
||||||
uses: aquasecurity/trivy-action@master
|
uses: jfrog/setup-jfrog-cli@v3
|
||||||
with:
|
env:
|
||||||
image-ref: 'danvid.jfrog.io/assignment-docker/spring-petclinic:${{ github.sha }}'
|
JF_URL: ${{ secrets.JF_URL }}
|
||||||
format: 'sarif'
|
JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
|
||||||
output: 'trivy-results.sarif'
|
- run: |
|
||||||
ignore-unfixed: true
|
jf scan danvid.jfrog.io/assignment-docker/spring-petclinic:${{ github.sha }}
|
||||||
vuln-type: 'os,library'
|
|
||||||
severity: 'CRITICAL,HIGH'
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
|
||||||
with:
|
|
||||||
sarif_file: 'trivy-results.sarif'
|
|
Loading…
Reference in a new issue