chore: Don't run sonar scan on pull requests.

This reverts commit e3d20afc6a.

It doesn't work.
This commit is contained in:
iphydf 2022-01-18 00:07:42 +00:00
parent 791fd01349
commit 2b783c4170
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -3,7 +3,7 @@ name: sonar-scan
on:
push:
branches: [master]
pull_request_target:
pull_request:
branches: [master]
jobs:
@ -37,10 +37,13 @@ jobs:
unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
echo "$HOME/.sonar/build-wrapper-linux-x86" >> $GITHUB_PATH
- name: Install dependencies and prepare build
run: .github/scripts/sonar-prepare
run: |
.github/scripts/sonar-prepare
- name: Run build-wrapper
run: 'build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} .github/scripts/sonar-build'
run: |
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} .github/scripts/sonar-build
- name: Run sonar-scanner
if: github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}