Skip to content

Commit

Permalink
Update CICD.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ChadenBA authored Apr 14, 2024
1 parent a8fd86b commit 6f305f0
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,10 @@ jobs:
path: target/*.jar
- name: Print Environment Variables
run: env
- name: Add Trivy to PATH
run: echo "PATH=/usr/bin/trivy:$PATH" >> $GITHUB_ENV

- name: Run Trivy scan
run: |
docker run --rm -v "${{ github.workspace }}:/workspace" aquasec/trivy sh -c "trivy fs --format table > /workspace/trivy-fs-report.txt"

- name: Trivy FS Scan
run: |
ls /usr/bin/trivy
/usr/bin/trivy fs --format table -o trivy-fs-report.html .
trivy fs --format table -o trivy-fs-report.html .
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
Expand Down

0 comments on commit 6f305f0

Please sign in to comment.