Skip to content

Commit 5f9e801

Browse files
authored
Change pull_request_target to pull_request event
1 parent 1127879 commit 5f9e801

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.github/workflows/build-pr.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@
22
name: Build
33

44
on:
5-
pull_request_target:
5+
pull_request:
66

77
jobs:
88
build:
99
runs-on: ubuntu-latest
1010

11-
environment:
12-
name: build-pr
13-
1411
strategy:
1512
matrix:
1613
node-version: ['20.17.0']
@@ -20,7 +17,6 @@ jobs:
2017
- uses: actions/checkout@v4
2118
with:
2219
fetch-depth: 0
23-
ref: ${{ github.event.pull_request.head.sha }}
2420

2521
- name: Use Node.js ${{ matrix.node-version }}
2622
uses: actions/setup-node@v4
@@ -64,9 +60,6 @@ jobs:
6460
6561
- name: SonarQube Analysis (Pull Request)
6662
uses: SonarSource/sonarqube-scan-action@v6
67-
env:
68-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
69-
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
7063
with:
7164
args: >
7265
-Dsonar.projectVersion=${{ steps.get_version.outputs.tag }}

0 commit comments

Comments
 (0)