Skip to content

Error on launching the default example #45

Description

@irizzant

I tried to execute the action with this workflow

      - name: Run trivy with reviewdog output on the PR
        uses: reviewdog/action-trivy@v1.5.2
        with:
          github_token: ${{ secrets.github_token }}
          trivy_command: config # Change trivy command
          trivy_target: . # Change trivy target directory
          level: info # Get more output from reviewdog
          reporter: github-pr-review # Change reviewdog reporter
          filter_mode: nofilter # Check all files, not just the diff
          fail_on_error: false # Fail action if errors are found
          flags: -tee # Add debug flag to reviewdog
          trivy_flags: "" # Optional

The action reports an error
immagine

but I see no review created on my PR.

I've also tried to change the command like this:

- name: Run trivy with reviewdog output on the PR
        uses: reviewdog/action-trivy@v1.5.2
        with:
          github_token: ${{ secrets.github_token }}
          trivy_command: filesystem # Change trivy command
          trivy_target: . # Change trivy target directory
          level: info # Get more output from reviewdog
          reporter: github-pr-review # Change reviewdog reporter
          filter_mode: nofilter # Check all files, not just the diff
          fail_on_error: false # Fail action if errors are found
          flags: -tee # Add debug flag to reviewdog
          trivy_flags: "--cache-dir  .trivy --vuln-type os,library" # Optional

and the result is the pipeline is successful but without any issue detected:
immagine

which isn't possible since there are issues:
immagine

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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