diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml index b3543cc4..4864e301 100644 --- a/.github/workflows/ci-backend.yml +++ b/.github/workflows/ci-backend.yml @@ -29,8 +29,6 @@ jobs: steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Set up JDK 21 uses: actions/setup-java@v4 with: @@ -39,28 +37,6 @@ jobs: cache: maven - name: Run the Maven verify phase run: mvn --batch-mode --update-snapshots verify - - name: SonarCloud scan for PR - uses: sonarsource/sonarcloud-github-action@383f7e52eae3ab0510c3cb0e7d9d150bbaeab838 # v3 - if: github.event_name == 'pull_request' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - with: - projectBaseDir: backend - args: | - -Dsonar.pullrequest.base=${{ github.base_ref }} - -Dsonar.pullrequest.branch=${{ github.head_ref }} - -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} - - name: SonarCloud scan for Push - uses: sonarsource/sonarcloud-github-action@383f7e52eae3ab0510c3cb0e7d9d150bbaeab838 # v3 - if: github.event_name == 'push' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - with: - projectBaseDir: backend - args: | - -Dsonar.branch.name=${{ github.head_ref }} - name: Login to GitHub Container Registry if: github.ref == 'refs/heads/main' run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin