Apply further suggestions from SonarQube #2
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
| on: | |
| # Trigger analysis when pushing to your main branches, and when creating a pull request. | |
| push: | |
| branches: main | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| name: Main Workflow | |
| jobs: | |
| sonarqube: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| # Disabling shallow clones is recommended for improving the relevancy of reporting | |
| fetch-depth: 0 | |
| - name: SonarQube Scan | |
| uses: SonarSource/sonarqube-scan-action@59db25f34e16620e48ab4bb9e4a5dce155cb5432 # v8.0.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| with: | |
| args: > | |
| -Dsonar.projectKey=purejava_fedora-update | |
| -Dsonar.organization=purejava | |
| -Dsonar.host.url=https://sonarcloud.io | |
| -Dsonar.projectVersion=${{ github.ref_name }} |