Skip to content

Commit ba6166b

Browse files
committed
Replaced "pull_request" with "pull_request_target" to give the workflow access to SONAR_TOKEN
1 parent a2ae88a commit ba6166b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/sonar-scanner.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ name: Sonar
33
on:
44
push:
55
branches: [ master ]
6-
pull_request:
7-
branches: [ master ]
6+
pull_request_target:
7+
types:
8+
- opened
9+
- synchronize
10+
- reopened
811
schedule:
912
- cron: "0 16 * * *"
1013

0 commit comments

Comments
 (0)