diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index b599cb33..d30ae388 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -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: