Skip to content

Commit 791da44

Browse files
weshaggardjnlycklama
authored andcommitted
Fix permissions for workflow
Need to fix permissions for the workflow to be able to successfully use gh pr edit as it needs to also be able to read the project list. This is only an issue in the private repo but we need we can set this up to work on either public or private.
1 parent 1ab7897 commit 791da44

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/comment.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ on:
44
issue_comment:
55
types: [created]
66

7-
permissions:
8-
pull-requests: write
9-
repository-projects: read
7+
permissions: { }
108

119
jobs:
1210
comment-handler:
1311
permissions:
14-
pull-requests: write # to read pull requests and write comments
12+
pull-requests: write # to read pull requests and write comments
13+
repository-projects: read # Workaround issue with cli trying to read projects during edit
1514
name: Handle ${{ github.event_name }} ${{ github.event.action }} event
1615
runs-on: ubuntu-latest
1716
steps:

0 commit comments

Comments
 (0)