Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

Change pull_request_target to pull_request event

Enno Gelhaus5f9e8012f6ca
diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml
index 4cbfe2b26..22f07a53c 100644
--- a/.github/workflows/build-pr.yml
+++ b/.github/workflows/build-pr.yml
@@ -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 }}