lazy-actions / gitrivy

GitHub Issue + Trivy Action
MIT License
54 stars 25 forks source link

Error: undefined error after not found vulnerabilities. #108

Closed roberto-morenoperez closed 2 years ago

roberto-morenoperez commented 2 years ago

I'm getting the following error that breaks the build, even if there is no errors reported.

//non interesting stuff

"Results": [
    {
      "Target": "image (alpine 3.14.2)",
      "Class": "os-pkgs",
      "Type": "alpine"
    },
    {
      "Target": "Java",
      "Class": "lang-pkgs",
      "Type": "jar"
    }
  ]
}
      stderr: 
      error: undefined

    at Trivy.scan (/home/runner/work/_actions/yokawasa/gitrivy/v3/dist/index.js:13334:15)
    at /home/runner/work/_actions/yokawasa/gitrivy/v3/dist/index.js:6568:34
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/work/_actions/yokawasa/gitrivy/v3/dist/index.js:6531:58)

This is how the action is configured:

      - name: Run Trivy vulnerability scanner
        id: trivy
        uses: yokawasa/gitrivy@v3.0.2
        continue-on-error: true
        with:
          image: image
          ignore_unfixed: true
          token: ${{ secrets.GITHUB_TOKEN }}
          fail_on_vulnerabilities: true
roberto-morenoperez commented 2 years ago

sorry, wrong repo