mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-16 00:22:34 +00:00
Fix the example of how to comment on pull request. (#220)
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
a549f5e36f
commit
98db1427e3
1 changed files with 4 additions and 0 deletions
|
|
@ -87,6 +87,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@v3
|
||||
- uses: hashicorp/setup-terraform@v2
|
||||
|
|
@ -153,6 +155,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@v3
|
||||
- uses: hashicorp/setup-terraform@v2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue