Skip to content

Commit 42d52af

Browse files
authored
Update PR markdown workflow permissions
Added write permission for pull requests to the workflow.
1 parent 4a653cb commit 42d52af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/pr-markdown.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Markdown Validation
22
permissions:
33
contents: read
4+
pull-requests: write
45

56
on:
67
pull_request:
@@ -27,8 +28,6 @@ jobs:
2728
token: ${{ steps.get_workflow_token.outputs.token }}
2829

2930
- name: Check git status
30-
env:
31-
GH_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
3231
run: |
3332
if [ -z "$(git status --porcelain)" ]; then
3433
gh pr comment --edit-last ${{ github.event.number }} \

0 commit comments

Comments
 (0)