Skip to content

Commit f18da51

Browse files
authored
feat(build): use pull_request_target for datahub-wheels (#12722)
1 parent 9ca9794 commit f18da51

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/python-build-pages.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "metadata-ingestion/**"
99
- "metadata-ingestion-modules/**"
1010
- "metadata-models/**"
11-
pull_request:
11+
pull_request_target:
1212
branches:
1313
- "**"
1414
paths:
@@ -38,7 +38,11 @@ jobs:
3838
distribution: "zulu"
3939
java-version: 17
4040
- uses: gradle/actions/setup-gradle@v4
41-
- uses: acryldata/sane-checkout-action@v3
41+
- uses: actions/checkout@v4
42+
# Note: not using acryldata/sane-checkout-action because this is a
43+
# pull_request_target event, and hence requires `ref`.
44+
with:
45+
ref: ${{ github.event.pull_request.base.sha }}
4246
- uses: actions/setup-python@v5
4347
with:
4448
python-version: "3.10"

0 commit comments

Comments
 (0)