File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 required : false
2323 type : string
2424 default : ' '
25+ secrets :
26+ SONAR_ORGANIZATION :
27+ required : false
28+ SONAR_PROJECT_KEY :
29+ required : false
30+ SONAR_TOKEN :
31+ required : false
2532
2633jobs :
2734 build :
7380 if : ${{ inputs.run-sonar }}
7481 env :
7582 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 }}
83+ SONAR_ORGANIZATION : ${{ secrets.SONAR_ORGANIZATION || inputs.sonar-organization }}
84+ SONAR_PROJECT_KEY : ${{ secrets.SONAR_PROJECT_KEY || inputs.sonar-project-key }}
85+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN || inputs.sonar-token }}
7986 run : |
8087 ./gradlew sonar -Psonar.branch.name=${GITHUB_REF#refs/heads/} --info --scan
8188
Original file line number Diff line number Diff line change 1515 # SonarQube requires JDK 17 or higher
1616 java-version : ' 17'
1717 run-sonar : true
18- sonar-organization : ${{ secrets.SONAR_ORGANIZATION }}
19- sonar-project-key : ${{ secrets.SONAR_PROJECT_KEY }}
20- sonar-token : ${{ secrets.SONAR_TOKEN }}
18+ secrets :
19+ SONAR_ORGANIZATION : ${{ secrets.SONAR_ORGANIZATION }}
20+ SONAR_PROJECT_KEY : ${{ secrets.SONAR_PROJECT_KEY }}
21+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
2122
2223 post-build :
2324 needs : build-artifacts
You can’t perform that action at this time.
0 commit comments