diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0005fd72..cb442d6a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,7 +3,6 @@ name: Build on: push: - pull_request_target: jobs: build: @@ -19,13 +18,6 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.sha }} - if: always() && github.event_name == 'pull_request' - - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - if: always() && github.event_name != 'pull_request' - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 @@ -67,24 +59,9 @@ jobs: VERSION=$(git describe --tags --always) echo "Project version is $VERSION" echo "tag=$VERSION" >> $GITHUB_OUTPUT - - - name: SonarQube Analysis (Pull Request) - uses: SonarSource/sonarqube-scan-action@v6 - if: always() && github.event_name == 'pull_request' - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - - SONAR_PULL_REQUEST_KEY: ${{ github.event.pull_request.number }} - SONAR_PULL_REQUEST_BRANCH: ${{ github.head_ref }} - SONAR_PULL_REQUEST_BASE: ${{ github.base_ref }} - with: - args: > - -Dsonar.projectVersion=${{ steps.get_version.outputs.tag }} - name: SonarQube Analysis (Branch) uses: SonarSource/sonarqube-scan-action@v6 - if: always() && github.event_name != 'pull_request' env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}