From 9ada987cf7ab7524f6600cfefa966c67c191ca09 Mon Sep 17 00:00:00 2001 From: David Cheung Date: Mon, 28 Aug 2023 16:10:48 -0400 Subject: [PATCH] chore: update gha script report comment --- .github/workflows/terraform.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 9785f29..0a8f7b6 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -52,17 +52,15 @@ jobs: exit $EXIT - - uses: actions/github-script@0.9.0 + - uses: actions/github-script@v6 if: github.event_name == 'pull_request' with: - github-token: ${{ secrets.GITHUB_TOKEN }} script: | const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\` #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\` #### Terraform Validation 🤖${{ steps.validate.outputs.stdout }} `; - - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,