Skip to content

Commit 98a7bb4

Browse files
Disservinvondele
authored andcommitted
CI give correct permissions for the clang-format action
closes #5470 No functional change
1 parent 362a77a commit 98a7bb4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/clang-format.yml

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
paths:
1212
- "**.cpp"
1313
- "**.h"
14+
15+
permissions:
16+
pull-requests: write
17+
1418
jobs:
1519
Clang-Format:
1620
name: Clang-Format
@@ -39,6 +43,7 @@ jobs:
3943
4044
_(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_
4145
comment_tag: execution
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4247

4348
- name: Comment on PR
4449
if: steps.clang-format.outcome != 'failure'
@@ -49,3 +54,4 @@ jobs:
4954
create_if_not_exists: false
5055
comment_tag: execution
5156
mode: delete
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)