Skip to content

Commit

Permalink
chore: Don't run sonar scan on pull requests.
Browse files Browse the repository at this point in the history
This reverts commit e3d20af.

It doesn't work.
  • Loading branch information
iphydf committed Jan 29, 2022
1 parent 8c3bd7f commit 4d3ce11
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/sonar-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: sonar-scan
on:
push:
branches: [master]
pull_request_target:
pull_request:
branches: [master]

jobs:
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 4d3ce11

Please sign in to comment.