Skip to content

Commit 2dcfb68

Browse files
sihyung-maximEricB-ADI
authored andcommitted
fix(workflow): Update clang-format-run-pr.yml to Node20.js and update permissions (#1233)
1 parent d798754 commit 2dcfb68

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/clang-format-run-pr.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,20 @@ on:
2727

2828
permissions:
2929
actions: write
30+
contents: write
3031

3132
env:
3233
CLANG_VERSION: 14
3334

3435
jobs:
3536

36-
run-on-pr:
37-
# Run on branchs, not forked PR branches
37+
run-on-pr:
38+
permissions:
39+
contents: write
40+
pull-requests: write
41+
actions: write
42+
43+
# Run on branches, not forked PR branches
3844
if: |
3945
contains(github.event.comment.body, '/clang-format-run')
4046
@@ -47,7 +53,7 @@ jobs:
4753
run: |
4854
sudo apt-get install clang-format-${CLANG_VERSION}
4955
50-
- uses: actions/github-script@v6
56+
- uses: actions/github-script@v7
5157
id: get-pr
5258
with:
5359
script: |

0 commit comments

Comments
 (0)