Skip to content

Commit a0e12fa

Browse files
committed
add some comments
1 parent db4b3dd commit a0e12fa

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.gitallowed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ password: \${{ secrets\.GITHUB_TOKEN }}
55
def __init__\(self, token: str, owner: str, repo: str.*
66
self\.token = token
77
token = os\.environ\.get\(\"GH_TOKEN\"\)
8+
\-Dsonar\.token=\"\$SONAR_TOKEN\"

.github/workflows/quality-checks.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,13 @@ jobs:
329329
- name: Run SonarQube analysis
330330
if: ${{ steps.check_languages.outputs.uses_java == 'true' && env.SONAR_TOKEN_EXISTS == 'true' }}
331331
run: |
332-
mvn clean
333-
mvn initialize
332+
# issues with sonar scanner and sslcontext-kickstart 9.1.0, forcing re-download
334333
rm -rf ~/.m2/repository/io/github/hakky54/sslcontext-kickstart/9.1.0
335334
mvn dependency:get -U -Dartifact=io.github.hakky54:sslcontext-kickstart:9.1.0
336-
mvn sonar:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }}
335+
# run sonar scan
336+
mvn sonar:sonar -Dsonar.token="$SONAR_TOKEN"
337+
env:
338+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
337339

338340
- name: SonarCloud Scan
339341
uses: SonarSource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9

0 commit comments

Comments
 (0)