Skip to content

parse error: EOF #100

@cocoeyes02

Description

@cocoeyes02

When using Trivy v0.64.0, parse error: EOF error occurs and prevents the next process from executing.
This error doesn't happen with Trivy v0.63.0.

example

v0.64.0

Run reviewdog/action-trivy@v1
Run $GITHUB_ACTION_PATH/script.sh
Preparing ...
🐶 Installing reviewdog (v0.20.3) ... https://github.com/reviewdog/reviewdog
 Installing trivy (latest) ... https://github.com/aquasecurity/trivy
 Print trivy details ...
 Running trivy with reviewdog 🐶 ...
  reviewdog: parse error: EOF
Error: Process completed with exit code 1.

v0.63.0

Run reviewdog/action-trivy@v1
Run $GITHUB_ACTION_PATH/script.sh
Preparing ...
🐶 Installing reviewdog (v0.20.3) ... https://github.com/reviewdog/reviewdog
 Installing trivy (v0.63.0) ... https://github.com/aquasecurity/trivy
 Print trivy details ...
 Running trivy with reviewdog 🐶 ...

yml

name: trivy
on: [pull_request]
jobs:
  trivy:
    name: trivy
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Scan
        uses: reviewdog/action-trivy@v1
        with:
          github_token: ${{ secrets.github_token }}
          trivy_command: config
          trivy_target: .
          fail_level: any
          filter_mode: "added"
          flags: ""
          trivy_flags: "--config trivy.yml"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions