Skip to content

Commit 46ba1fd

Browse files
committed
fix preview head validation
1 parent 7ca5d33 commit 46ba1fd

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/deploy_reviewed_pr_preview.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ jobs:
266266
'Preview request originated from an unexpected workflow path.',
267267
);
268268
requireCondition(
269-
workflowRun.head_sha === request.ref
270-
&& workflowRun.head_repository?.full_name === request.repository,
269+
workflowRun.head_sha === request.ref,
271270
'The preview request does not match the triggering workflow head.',
272271
);
273272

kaaj/src/pr_preview_scripts.ncl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ let { active_deploy_review_helper, deploy_permission_helper, .. } = import "pr_p
109109
'Preview request originated from an unexpected workflow path.',
110110
);
111111
requireCondition(
112-
workflowRun.head_sha === request.ref
113-
&& workflowRun.head_repository?.full_name === request.repository,
112+
workflowRun.head_sha === request.ref,
114113
'The preview request does not match the triggering workflow head.',
115114
);
116115

0 commit comments

Comments
 (0)