Skip to content

Commit

Permalink
Use trivy action (#177)
Browse files Browse the repository at this point in the history
* Added use of Trivy Github Action
  • Loading branch information
dhirupandey authored Nov 21, 2024
1 parent 1d9b5fb commit 0922396
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ on:
jobs:
trivy-scan:
runs-on: ubuntu-latest
container:
image: ghcr.io/aquasecurity/trivy:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/runner/work/coherence-py-client/coherence-py-client:/repo

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Trivy Scan
run: trivy fs --exit-code 1 --skip-dirs "/repo/tests/java" /repo
- name: Run Trivy vulnerability scanner to scan repo
uses: aquasecurity/trivy-action@0.29.0
with:
scan-type: 'fs'
skip-dirs: 'tests/java'

0 comments on commit 0922396

Please sign in to comment.