File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,15 @@ name: Sonar
1111jobs :
1212 build :
1313 runs-on : ubuntu-latest
14- if : contains(github.event.pull_request.labels.*.name, 'tests can be run') ||
15- github.event.pull_request.head.repo.full_name == github.repository ||
16- github.event_name != 'pull_request_target'
1714 steps :
1815 - uses : actions/checkout@v2
1916 with :
2017 fetch-depth : 0
18+ - name : Check for external PR
19+ if : ${{ !(contains(github.event.pull_request.labels.*.name, 'safe') ||
20+ github.event.pull_request.head.repo.full_name == github.repository ||
21+ github.event_name != 'pull_request_target') }}
22+ run : echo "Unsecure PR, must be labelled with the 'safe' label, then run the workflow again" && exit 1
2123 - name : Set up JDK
2224 uses : actions/setup-java@v1
2325 with :
You can’t perform that action at this time.
0 commit comments