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,