File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
- name : SonarCloud Scan
1
+ name : Build
2
2
on :
3
- pull_request_target :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ types : [opened, synchronize, reopened]
4
8
jobs :
5
9
sonarcloud :
6
10
name : SonarCloud
7
11
runs-on : ubuntu-latest
8
12
steps :
9
- - name : Checkout repo
10
- uses : actions/checkout@v2
13
+ - uses : actions/checkout@v3
11
14
with :
12
- ref : ${{ github.event.pull_request.head.ref }}
13
- repository : ${{ github.event.pull_request.head.repo.full_name }}
14
15
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
15
16
- name : SonarCloud Scan
16
17
uses : SonarSource/sonarcloud-github-action@master
17
18
env :
18
19
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
19
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
20
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments