Skip to content

Commit a33a883

Browse files
authored
Refactor static analysis workflow for pull requests
1 parent aaefa8a commit a33a883

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

.github/workflows/static-analysis.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- "[0-9]+.[0-9]+"
1010
- "[0-9]+.x"
1111
- "feature-*"
12-
pull_request_target:
12+
pull_request:
1313
types: [ opened, synchronize, reopened ]
1414

1515

@@ -25,17 +25,8 @@ jobs:
2525
matrix: ${{ steps.set-matrix.outputs.matrix }}
2626
private_repo: ${{ env.PRIVATE_REPO }}
2727
steps:
28-
- name: Checkout PR head (only for pull_request_target)
29-
if: github.event_name == 'pull_request_target'
30-
uses: "actions/checkout@v4"
31-
with:
32-
ref: "refs/pull/${{ github.event.pull_request.number }}/merge"
33-
34-
- name: Checkout PR head (for push or other events)
35-
if: github.event_name != 'pull_request_target'
36-
uses: "actions/checkout@v4"
37-
with:
38-
ref: ${{ github.ref }}
28+
- name: Checkout code
29+
uses: actions/checkout@v4
3930

4031
- name: Checkout reusable workflow repo
4132
uses: actions/checkout@v4

0 commit comments

Comments
 (0)