Skip to content

Commit 78325d3

Browse files
authored
address-pull-request-target-discrepancies (#82)
1 parent f709411 commit 78325d3

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/swift.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Swift
33
on:
44
push:
55
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
86
pull_request_target:
97
branches: [ main ]
108

@@ -16,6 +14,8 @@ jobs:
1614
with:
1715
xcode-version: '13.0'
1816
- uses: actions/checkout@v2
17+
with:
18+
ref: ${{ github.event.pull_request.head.sha }}
1919
- uses: webfactory/[email protected]
2020
with:
2121
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
@@ -31,6 +31,8 @@ jobs:
3131
with:
3232
swift-version: "5.4"
3333
- uses: actions/checkout@v2
34+
with:
35+
ref: ${{ github.event.pull_request.head.sha }}
3436
- uses: webfactory/[email protected]
3537
with:
3638
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
@@ -46,6 +48,8 @@ jobs:
4648
with:
4749
xcode-version: '13.0'
4850
- uses: actions/checkout@v2
51+
with:
52+
ref: ${{ github.event.pull_request.head.sha }}
4953
- uses: webfactory/[email protected]
5054
with:
5155
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
@@ -58,6 +62,8 @@ jobs:
5862
with:
5963
xcode-version: '13.0'
6064
- uses: actions/checkout@v2
65+
with:
66+
ref: ${{ github.event.pull_request.head.sha }}
6167
- uses: webfactory/[email protected]
6268
with:
6369
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
@@ -70,6 +76,8 @@ jobs:
7076
with:
7177
xcode-version: '13.0'
7278
- uses: actions/checkout@v2
79+
with:
80+
ref: ${{ github.event.pull_request.head.sha }}
7381
- uses: webfactory/[email protected]
7482
with:
7583
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
@@ -82,6 +90,8 @@ jobs:
8290
with:
8391
xcode-version: '13.0'
8492
- uses: actions/checkout@v2
93+
with:
94+
ref: ${{ github.event.pull_request.head.sha }}
8595
- uses: webfactory/[email protected]
8696
with:
8797
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}

0 commit comments

Comments
 (0)