Skip to content

Commit 7333c0c

Browse files
authored
Merge pull request #563 from dbt-labs/fix/fusion-workflow-fork-prs
2 parents 0124c18 + 81ef845 commit 7333c0c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/fusion.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
push:
2020
branches:
2121
- main
22-
pull_request:
22+
pull_request_target:
2323
workflow_dispatch:
2424

2525
env:
@@ -35,8 +35,11 @@ jobs:
3535
adapter: [snowflake]
3636

3737
steps:
38-
- name: "Checkout ${{ github.event.repository }}"
38+
- name: "Checkout PR code"
3939
uses: actions/checkout@v4
40+
with:
41+
# For pull_request_target, we must explicitly checkout the PR head
42+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
4043

4144
- name: "Set up Python ${{ env.PYTHON_VERSION }}"
4245
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)