diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index 6a1554d2c..3d6cd2734 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -141,6 +141,39 @@ jobs: with: sarif_file: "trivy-results4.sarif" + analyze-product-bpdm-cleaning-service-dummy: + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + packages: read + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Run Trivy vulnerability scanner + if: always() + uses: aquasecurity/trivy-action@master + with: + # Path to Docker image + image-ref: "docker.io/tractusx/bpdm-cleaning-service-dummy:latest" + format: "sarif" + output: "trivy-results4.sarif" + exit-code: "1" + severity: "CRITICAL,HIGH" + timeout: 15m + env: + TRIVY_USERNAME: ${{ github.actor }} + TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload Trivy scan results to GitHub Security tab + if: always() + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: "trivy-results4.sarif" + analyze-product-bpdm-orchestrator: runs-on: ubuntu-latest permissions: