Skip to content

Commit 298f22e

Browse files
authored
use pull_request_target, add perms
- changed event trigger from pull_request to pull_request_target - added permissions for contents: read, issues: write, pull-requests: write
1 parent 9de2db8 commit 298f22e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/docs-preview-comment.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: "Docs preview comment"
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, reopened, synchronize]
66

7+
permissions:
8+
contents: read
9+
issues: write
10+
pull-requests: write
11+
712
jobs:
813
preview-links:
914
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)