From 2580b8ecdc6bde2cbe3f201f692c314d768c46cd Mon Sep 17 00:00:00 2001 From: Enno Gelhaus Date: Wed, 1 Oct 2025 14:04:36 +0200 Subject: [PATCH] Add environment configuration for build job --- .github/workflows/build-pr.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 00e26a4e..e5ca699b 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -7,7 +7,9 @@ on: jobs: build: runs-on: ubuntu-latest - + + environment: + name: build-pr strategy: matrix: @@ -66,10 +68,9 @@ jobs: 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 }} + -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} + -Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} + -Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}