Skip to content

Commit f250120

Browse files
authored
Merge pull request #226 from Sander0542/fix/issue-comment-triage-workflow
fix: Add permissions to Issue Comment Triage workflow
2 parents 293f095 + a709ba5 commit f250120

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/issue-comment-triage.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
# DO NOT EDIT - This GitHub Workflow is managed by automation
2-
# https://github.com/hashicorp/terraform-devex-repos
31
name: Issue Comment Triage
42

53
on:
64
issue_comment:
75
types: [created]
86

7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
911
jobs:
1012
issue_comment_triage:
1113
runs-on: ubuntu-latest
1214
env:
13-
# issue_comment events are triggered by comments on issues and pull requests. Checking the
14-
# value of github.event.issue.pull_request tells us whether the issue is an issue or is
15-
# actually a pull request, allowing us to dynamically set the gh subcommand:
16-
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment-on-issues-only-or-pull-requests-only
1715
COMMAND: ${{ github.event.issue.pull_request && 'pr' || 'issue' }}
1816
GH_TOKEN: ${{ github.token }}
1917
steps:

0 commit comments

Comments
 (0)