mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-27 05:23:37 +00:00
Fix the example of how to comment on pull request.
It doesn't work without granting permissions. https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
This commit is contained in:
parent
b714c4b766
commit
4ba630fc3f
1 changed files with 4 additions and 0 deletions
|
|
@ -84,6 +84,8 @@ Outputs can be used in subsequent steps to comment on the pull request:
|
|||
defaults:
|
||||
run:
|
||||
working-directory: ${{ env.tf_actions_working_dir }}
|
||||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: hashicorp/setup-terraform@v2
|
||||
|
|
@ -150,6 +152,8 @@ Instead of creating a new comment each time, you can also update an existing one
|
|||
defaults:
|
||||
run:
|
||||
working-directory: ${{ env.tf_actions_working_dir }}
|
||||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: hashicorp/setup-terraform@v2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue