Skip to content

Commit b5ad2fc

Browse files
authored
Update to use trivy action. (#97)
1 parent 2776a33 commit b5ad2fc

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/trivy-scan.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ on:
1616
jobs:
1717
trivy-scan:
1818
runs-on: ubuntu-latest
19-
container:
20-
image: ghcr.io/aquasecurity/trivy:latest
21-
volumes:
22-
- /var/run/docker.sock:/var/run/docker.sock
23-
- /home/runner/work/coherence-js-client/coherence-js-client:/repo
2419

2520
steps:
26-
- uses: actions/checkout@v4
21+
- name: Checkout code
22+
uses: actions/checkout@v4
2723

28-
- name: Trivy Scan
29-
run: trivy fs --exit-code 1 /repo
24+
- name: Run Trivy vulnerability scanner to scan repo
25+
uses: aquasecurity/[email protected]
26+
with:
27+
scan-type: 'fs'
28+
exit-code: 1

0 commit comments

Comments
 (0)