chore(ci): switch to Trivy
This commit is contained in:
parent
800ad92e52
commit
f38d9fd3d0
@ -55,17 +55,28 @@ jobs:
|
|||||||
- name: Minimize uv cache
|
- name: Minimize uv cache
|
||||||
run: uv cache prune --ci
|
run: uv cache prune --ci
|
||||||
|
|
||||||
- name: SonarQube Scan
|
# - name: SonarQube Scan
|
||||||
uses: SonarSource/sonarqube-scan-action@v5.2.0
|
# uses: SonarSource/sonarqube-scan-action@v5.2.0
|
||||||
env:
|
# env:
|
||||||
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }}
|
# SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
# SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
||||||
|
|
||||||
- name: Snyk Vulnerability Scan
|
# - name: Snyk Vulnerability Scan
|
||||||
uses: snyk/actions/python@master
|
# uses: snyk/actions/python@master
|
||||||
continue-on-error: true # Sometimes vulns aren't immediately fixable
|
# continue-on-error: true # Sometimes vulns aren't immediately fixable
|
||||||
env:
|
# env:
|
||||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||||
|
# with:
|
||||||
|
# command: snyk
|
||||||
|
# args: test --all-projects
|
||||||
|
|
||||||
|
- name: Trivy Vulnerability Scan
|
||||||
|
uses: aquasecurity/trivy-action@0.30.0
|
||||||
with:
|
with:
|
||||||
command: snyk
|
scan-type: "fs"
|
||||||
args: test --all-projects
|
scan-ref: "${{ gitea.workspace }}"
|
||||||
|
exit-code: "1"
|
||||||
|
ignore-unfixed: true
|
||||||
|
format: "table"
|
||||||
|
severity: "CRITICAL,HIGH,MEDIUM"
|
||||||
|
scanners: "vuln,secret,misconfig,license"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user