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 f53fc52 commit e5a2a3eCopy full SHA for e5a2a3e
.github/workflows/sonar-scanner.yml
@@ -3,7 +3,7 @@ name: Sonar
3
push:
4
branches:
5
- main
6
- pull_request:
+ pull_request_target:
7
8
9
schedule:
@@ -13,6 +13,11 @@ jobs:
13
runs-on: ubuntu-latest
14
steps:
15
- uses: actions/checkout@v2
16
+ - name: Check for external PR
17
+ if: ${{ !(contains(github.event.pull_request.labels.*.name, 'safe') ||
18
+ github.event.pull_request.head.repo.full_name == github.repository ||
19
+ github.event_name != 'pull_request_target') }}
20
+ run: echo "Unsecure PR, must be labelled with the 'safe' label, then run the workflow again" && exit 1
21
- name: Use Node.js 13
22
uses: actions/setup-node@v1
23
with:
0 commit comments