Skip to content

Commit b18c0b4

Browse files
committed
use pull_request_target
1 parent ce785d4 commit b18c0b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/cpp-linter.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
name: C++ Linter
1919

2020
on:
21-
pull_request:
21+
pull_request_target:
22+
types: [opened, synchronize]
2223
paths-ignore:
2324
- '.github/**'
2425
- 'ci/**'
@@ -29,8 +30,6 @@ on:
2930
jobs:
3031
cpp-linter:
3132
runs-on: ubuntu-24.04
32-
permissions:
33-
pull-requests: write
3433
steps:
3534
- uses: actions/checkout@v4
3635
- name: Run build

0 commit comments

Comments
 (0)