8000 Action is not posting comments on the PR · Issue #74 · reviewdog/action-trivy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Action is not posting comments on the PR #74
Open
@Montek30

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

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

      0