Skip to content

Comments not working #19

@Moulick

Description

@Moulick

Describe the bug
The action is not commenting on the pull request

To Reproduce

name: run

on:
  pull_request:
  workflow_dispatch:

permissions:
  id-token: write # This is required for requesting the token from STS
  contents: read # This is required for actions/checkout
  pull-requests: write # This is required for writing comments

env:
  AWS_DEFAULT_REGION: eu-central-1
  REPO_NAME: ${{ github.event.repository.name }}

jobs:
  checks:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Configure AWS credentials
        uses: aws/configure-aws-credentials@v3
        with: <...>

      - name: Terragrunt plan
        uses: gruntwork-io/terragrunt-action@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          tg_comment: true

          tf_version: "1.5.6"
          tg_version: " 0.50.7"
          tg_dir: "envs/preview"
          tg_command: "plan --terragrunt-log-level trace --terragrunt-debug"
        continue-on-error: true

Expected behavior

The PR should have a comment

Nice to have

These are the last log lines of the action
image

Versions

  • Terragrunt Action version: @v1
  • Environment details (Terragrunt version, Terraform version, etc.):
    • tf_version: "1.5.6"
    • tg_version: " 0.50.7"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions