chore(deps): Bump the apache-cxf group across 1 directory with 3 updates #46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SonarCloud Analysis | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - develop | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| sonarcloud: | |
| name: SonarCloud Scan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Shallow clones should be disabled for better relevancy of analysis | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Cache SonarCloud packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.sonar/cache | |
| key: ${{ runner.os }}-sonar | |
| restore-keys: ${{ runner.os }}-sonar | |
| - name: Verify CI-based analysis is enabled | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| run: | | |
| echo "Checking SonarCloud project settings..." | |
| # Query project settings to check if automatic analysis is disabled | |
| PROJECT_SETTINGS=$(curl -s -u "$SONAR_TOKEN:" \ | |
| "https://sonarcloud.io/api/settings/values?component=FlossWare_commons-java") | |
| echo "Project settings retrieved. Proceeding with CI-based analysis..." | |
| echo "" | |
| echo "NOTE: If this workflow fails with 'Automatic Analysis is enabled'," | |
| echo "you must manually disable it in the SonarCloud web UI:" | |
| echo " 1. Visit: https://sonarcloud.io/project/administration/analysis_method?id=FlossWare_commons-java" | |
| echo " 2. Select 'CI-based analysis'" | |
| echo " 3. Disable 'Automatic Analysis'" | |
| echo "" | |
| - name: Build and analyze with SonarCloud | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| SONARCLOUD_SKIP_AUTOCONFIG: true | |
| run: | | |
| mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ | |
| -Dsonar.projectKey=FlossWare_commons-java \ | |
| -Dsonar.organization=flossware \ | |
| -Dsonar.scanner.skipJreProvisioning=true \ | |
| -Dsonar.scanner.skip.autoscan=true \ | |
| -Dsonar.scm.disabled=false \ | |
| -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \ | |
| -Dsonar.qualitygate.wait=true |