Commit 076108f 1 parent 06891cc commit 076108f Copy full SHA for 076108f
File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 11
11
types :
12
12
- completed
13
13
14
+ permissions :
15
+ actions : read
16
+ issues : write
17
+ checks : read
18
+ statuses : read
19
+ pull-requests : write
20
+
14
21
jobs :
15
22
comment :
16
23
name : Comment Bot
21
28
name : content
22
29
path : /tmp/content
23
30
run-id : ${{ github.event.workflow_run.id }}
24
- github-token : ${{ secrets.READ_ONLY_PAT }}
31
+ github-token : ${{ secrets.READ_ONLY_PAT || github.token }}
25
32
26
33
- name : Read pr number
27
34
id : get_pr_number
40
47
with :
41
48
issue-number : ${{ steps.get_pr_number.outputs.pr_number }}
42
49
comment-author : " github-actions[bot]"
50
+ token : ${{ secrets.READ_ONLY_PAT || github.token }}
43
51
44
52
- name : Create or update pr comment
45
53
uses : peter-evans/create-or-update-comment@v4
@@ -49,10 +57,12 @@ jobs:
49
57
issue-number : ${{ steps.get_pr_number.outputs.pr_number }}
50
58
body-file : /tmp/all.txt
51
59
edit-mode : replace
60
+ token : ${{ secrets.READ_ONLY_PAT || github.token }}
52
61
53
62
- name : Create or update commit comment
54
63
uses : peter-evans/commit-comment@v3
55
64
if : ${{ steps.get_pr_number.outputs.pr_number == null }}
56
65
with :
57
66
sha : ${{ github.event.workflow_run.head_sha }}
58
67
body-file : /tmp/all.txt
68
+ token : ${{ secrets.READ_ONLY_PAT || github.token }}
You can’t perform that action at this time.
0 commit comments