From aaabb26685c2885163f419a28fe3e363600187e1 Mon Sep 17 00:00:00 2001 From: bmunguli Date: Thu, 28 Mar 2024 11:32:57 +0100 Subject: [PATCH] fix: remove sonar cloud steps from build workflow - sonar can not run on prs from forks --- .github/workflows/build-snapshot.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/build-snapshot.yml b/.github/workflows/build-snapshot.yml index b40b114a..6da712d0 100644 --- a/.github/workflows/build-snapshot.yml +++ b/.github/workflows/build-snapshot.yml @@ -39,30 +39,13 @@ jobs: packages: write steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 # required for sonar analysis - - name: Set up JDK 17 uses: actions/setup-java@v3 with: java-version: '17' distribution: 'adopt' cache: maven - - - name: Cache SonarCloud packages - uses: actions/cache@v4 - with: - path: ~/.sonar/cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar - - name: Build and Deploy with Maven run: mvn clean -X install env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: SonarCloud Code Analysis - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: mvn --batch-mode sonar:sonar -Dsonar.projectKey=eclipse-tractusx_sldt-digital-twin-registry -Dsonar.organization=eclipse-tractusx \ No newline at end of file