From efc4c63a2bfd9f1cac8ea41eca5b0da60d96b370 Mon Sep 17 00:00:00 2001 From: Aditya Jaiswal <32607172+jaiswaladi246@users.noreply.github.com> Date: Fri, 29 Mar 2024 00:53:09 +0530 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3bdf33cf..504ec5bd 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -20,9 +20,13 @@ jobs: - name: Build with Maven run: mvn package - - name: Run Shell Commands + FS_Scan: + + runs-on: self-hosted + steps: + - name: Trivy FS Scan run: | - trivy fs --format table -o trivy.report . + trivy fs --format table -o trivy-fs-report.html . - name: SonarQube Scan uses: sonarsource/sonarqube-scan-action@master @@ -52,7 +56,11 @@ jobs: - name: Build Docker Image run: | - docker build -t adijaiswal/board:latest . + docker build -t adijaiswal/boardgame:latest . + + - name: Trivy Image Scan + run: | + trivy image --format table -o trivy-image-report.html adijaiswal/board:latest - name: Login to Docker Hub uses: docker/login-action@v3 @@ -62,6 +70,6 @@ jobs: - name: Push Docker Image run: | - docker push adijaiswal/board:latest + docker push adijaiswal/boardgame:latest