Skip to content

Commit 8be1457

Browse files
committed
fix(workflow): change trigger to pull_request_target and specify ref for checkout
1 parent 0a9d95d commit 8be1457

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/test-e2e-pr.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
name: test-e2e-pr
44

55
on:
6-
pull_request:
7-
branches:
8-
- main
6+
pull_request_target:
7+
branches: [main]
98

109
permissions:
1110
id-token: write
@@ -20,6 +19,8 @@ jobs:
2019
steps:
2120
- name: Checkout
2221
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
22+
with:
23+
ref: ${{ github.event.pull_request.head.sha }}
2324

2425
- name: Install Terraform
2526
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3

0 commit comments

Comments
 (0)