Skip to content

Commit 1d31529

Browse files
zdtswCopilot
andauthored
fix: imipacted old trivy version (llm-d#940)
* fix: imipacted old trivy version Signed-off-by: Wen Zhou <wenzhou@redhat.com> * Update .github/actions/trivy-scan/action.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Wen Zhou <wenzhou@redhat.com> --------- Signed-off-by: Wen Zhou <wenzhou@redhat.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 52c12e2 commit 1d31529

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/actions/trivy-scan/action.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ inputs:
66
runs:
77
using: "composite"
88
steps:
9-
- name: Install Trivy
10-
run: |
11-
wget https://github.com/aquasecurity/trivy/releases/download/v0.44.1/trivy_0.44.1_Linux-64bit.deb
12-
sudo dpkg -i trivy_0.44.1_Linux-64bit.deb
13-
shell: bash
14-
15-
- name: Scan image
16-
run: |
17-
trivy image --severity HIGH,CRITICAL --no-progress ${{ inputs.image }}
18-
shell: bash
9+
- name: Run Trivy vulnerability scanner
10+
uses: aquasecurity/trivy-action@9f44c5c69c8f29909852ffb4058a52c57d20593d # v0.35.0
11+
with:
12+
image-ref: ${{ inputs.image }}
13+
format: "table"
14+
severity: "HIGH,CRITICAL"

0 commit comments

Comments
 (0)