From a8b9cd7526a3f2482507ad90c5ac3b3b9fcbecba Mon Sep 17 00:00:00 2001 From: Emanuela Epure <67077116+emanuelaepure10@users.noreply.github.com> Date: Wed, 5 Jun 2024 10:30:16 +0200 Subject: [PATCH] fixup! feat: scanning the entire repository Update trivy.yml --- .github/workflows/trivy.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index 7782f25588..905267092e 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -72,15 +72,15 @@ jobs: # branch: update-vulnerabilities # base: master + - name: Run Trivy vulnerability scanner + uses: aquasecurity/trivy-action@0.20.0 + with: + scan-type: 'fs' + format: 'sarif' + output: 'trivy-results.sarif' + severity: 'CRITICAL,HIGH' - - name: Install Trivy - run: | - sudo apt-get update - sudo apt-get install wget -y - wget https://github.com/aquasecurity/trivy/releases/download/v0.34.0/trivy_0.34.0_Linux-64bit.deb - sudo dpkg -i trivy_0.34.0_Linux-64bit.deb - - - name: Scan the entire repository - run: | - echo "Scanning the entire repository..." - trivy fs . \ No newline at end of file + - name: Upload Trivy scan results to GitHub Security tab + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: 'trivy-results.sarif' \ No newline at end of file