Skip to content

Commit 2022282

Browse files
authored
Update cpp-linter.yml with pull request permissions
Added permissions for pull requests and enabled format review.
1 parent ec86641 commit 2022282

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/cpp-linter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths: ['**.h', '**.hpp', '**.m', '**.mm', '**.c', **.cpp']
99
permissions:
1010
contents: read
11+
pull-requests: write
1112
jobs:
1213
cpp-linter:
1314
runs-on: ubuntu-latest
@@ -23,6 +24,7 @@ jobs:
2324
style: 'file'
2425
tidy-checks: '-*'
2526
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
27+
format-review: true
2628
- name: Fail fast?!
2729
if: steps.linter.outputs.checks-failed > 0
2830
run: exit 1

0 commit comments

Comments
 (0)