We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f852fa commit 4abf81bCopy full SHA for 4abf81b
.github/workflows/sonar.yml
@@ -4,10 +4,8 @@ name: Sonar
4
branches:
5
- main
6
pull_request_target:
7
- types:
8
- - opened
9
- - synchronize
10
- - reopened
+ branches:
+ - main
11
schedule:
12
- cron: 0 16 * * *
13
jobs:
@@ -18,6 +16,11 @@ jobs:
18
16
- uses: actions/checkout@v2
19
17
with:
20
fetch-depth: 0
+ - name: Check for external PR
+ if: ${{ !(contains(github.event.pull_request.labels.*.name, 'safe') ||
21
+ github.event.pull_request.head.repo.full_name == github.repository ||
22
+ github.event_name != 'pull_request_target') }}
23
+ run: echo "Unsecure PR, must be labelled with the 'safe' label, then run the workflow again" && exit 1
24
- name: Set up Python 3.8
25
uses: actions/setup-python@v2
26
0 commit comments