File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 required : false
1111 type : boolean
1212 default : false
13+ sonar-organization :
14+ required : false
15+ type : string
16+ default : ' '
17+ sonar-project-key :
18+ required : false
19+ type : string
20+ default : ' '
21+ sonar-token :
22+ required : false
23+ type : string
24+ default : ' '
1325
1426jobs :
1527 build :
6173 if : ${{ inputs.run-sonar }}
6274 env :
6375 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76+ SONAR_ORGANIZATION : ${{ inputs.sonar-organization }}
77+ SONAR_PROJECT_KEY : ${{ inputs.sonar-project-key }}
78+ SONAR_TOKEN : ${{ inputs.sonar-token }}
6479 run : |
6580 ./gradlew sonar -Psonar.branch.name=${GITHUB_REF#refs/heads/} --info --scan
6681
Original file line number Diff line number Diff line change 2020 # SonarQube requires JDK 17 or higher
2121 java-version : ' 17'
2222 run-sonar : true
23+ sonar-organization : ${{ env.SONAR_ORGANIZATION }}
24+ sonar-project-key : ${{ env.SONAR_PROJECT_KEY }}
25+ sonar-token : ${{ env.SONAR_TOKEN }}
2326
2427 post-build :
2528 needs : build-artifacts
You can’t perform that action at this time.
0 commit comments