mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2026-03-26 21:35:58 +00:00
Fix Trivy: run directly via docker instead of action to avoid exit code issues
This commit is contained in:
parent
36a706b627
commit
3ae2d2dee5
13
.github/workflows/build.yaml
vendored
13
.github/workflows/build.yaml
vendored
@ -61,12 +61,13 @@ jobs:
|
||||
version=${{ needs.resolve-version.outputs.version }}
|
||||
|
||||
- name: Run Trivy vulnerability scan
|
||||
uses: aquasecurity/trivy-action@0.30.0
|
||||
with:
|
||||
image-ref: "protonmail-bridge:test"
|
||||
format: 'table'
|
||||
exit-code: 0
|
||||
severity: 'CRITICAL,HIGH'
|
||||
continue-on-error: true
|
||||
run: |
|
||||
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
|
||||
aquasec/trivy:latest image \
|
||||
--severity CRITICAL,HIGH \
|
||||
--exit-code 0 \
|
||||
protonmail-bridge:test
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Loading…
Reference in New Issue
Block a user