diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index c7d0dde7..de322bcb 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -1,7 +1,7 @@ name: Development on: - pull_request_target: + pull_request: types: [opened, synchronize, reopened] jobs: @@ -12,8 +12,6 @@ jobs: python: ["3.9", "3.13"] steps: - uses: actions/checkout@v4 - with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Set up Python uses: actions/setup-python@v5 with: @@ -30,8 +28,6 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 - with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Install dependencies run: npm ci @@ -46,8 +42,6 @@ jobs: python: ["3.9", "3.13"] steps: - uses: actions/checkout@v4 - with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Set up Python uses: actions/setup-python@v5 with: @@ -64,8 +58,6 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 - with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Install dependencies run: npm ci @@ -80,8 +72,6 @@ jobs: python: ["3.9"] steps: - uses: actions/checkout@v4 - with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Set up Python uses: actions/setup-python@v5 with: @@ -98,8 +88,6 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 - with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Install dependencies run: npm ci @@ -114,8 +102,6 @@ jobs: python: ["3.9", "3.13"] steps: - uses: actions/checkout@v4 - with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Set up Python uses: actions/setup-python@v5 with: @@ -132,8 +118,6 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 - with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Install dependencies run: npm ci @@ -148,8 +132,6 @@ jobs: python: ["3.9", "3.13"] steps: - uses: actions/checkout@v4 - with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Set up Python uses: actions/setup-python@v5 with: @@ -166,8 +148,6 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 - with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Install dependencies run: npm ci @@ -176,6 +156,8 @@ jobs: run: npm run test:integration build: + # Only build if the PR branch is local + if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest strategy: matrix: @@ -185,7 +167,6 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Set up Python uses: actions/setup-python@v5 with: @@ -228,6 +209,8 @@ jobs: }) build-and-push-container: + # Only build if the PR branch is local + if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest permissions: packages: write