mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-06-04 06:24:58 -06:00
ci: make SARIF upload best-effort and always upload artifact
This commit is contained in:
parent
3feee4758b
commit
67f9016a68
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -28,12 +28,20 @@ jobs:
|
|||||||
output: trivy-results.sarif
|
output: trivy-results.sarif
|
||||||
severity: CRITICAL,HIGH
|
severity: CRITICAL,HIGH
|
||||||
|
|
||||||
- name: Upload SARIF results to GitHub Code Scanning
|
- name: Upload SARIF results to GitHub Code Scanning (best-effort)
|
||||||
uses: github/code-scanning-action/upload-sarif@v2
|
uses: github/code-scanning-action/upload-sarif@v2
|
||||||
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
sarif_file: 'trivy-results.sarif'
|
sarif_file: 'trivy-results.sarif'
|
||||||
|
|
||||||
- name: Upload Trivy SARIF artifact
|
- name: List SARIF file (debug)
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
echo "Listing SARIF file:"
|
||||||
|
ls -la trivy-results.sarif || true
|
||||||
|
|
||||||
|
- name: Upload Trivy SARIF artifact (always)
|
||||||
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: trivy-sarif
|
name: trivy-sarif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user