Skip to content

Action is not posting comments on the PR #74

Description

@Montek30

Hi,
We are integrating this action with our github workflow for terraform. I can see the logs that its generating the error msgs but its not posting the comments on the PR. Any ideas what could be the reason?
Here is the code:

 trivy:
    name: "Trivy"
    if: github.ref != 'refs/heads/main' && github.event_name == 'pull_request'
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Run trivy with reviewdog output on the PR
        id: trivy
        uses: reviewdog/action-trivy@v1
        with:
          github_token: ${{ secrets.API_GITHUB_TOKEN }}
          trivy_command: config
          trivy_target: .
          working_directory: aws
          reporter: github-pr-review
          fail_on_error: true
          flags: '-tee -fail-level=any'
          # level: info
      - name: Output
        run: |
          echo "${{steps.trivy.outputs.trivy-return-code}}"
          echo "${{steps.trivy.outputs.reviewdog-return-code}}"

Logs:
image
image

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