Change pull_request_target to pull_request event

This commit is contained in:
Enno Gelhaus 2025-10-01 21:38:06 +02:00 committed by GitHub
parent 1127879b30
commit 5f9e8012f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 8 deletions

View File

@ -2,15 +2,12 @@
name: Build
on:
pull_request_target:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
environment:
name: build-pr
strategy:
matrix:
node-version: ['20.17.0']
@ -20,7 +17,6 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
@ -64,9 +60,6 @@ jobs:
- name: SonarQube Analysis (Pull Request)
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
args: >
-Dsonar.projectVersion=${{ steps.get_version.outputs.tag }}