diff --git a/.github/workflows/details-check.yml b/.github/workflows/details-check.yml
index d4f7f644f..bed3a41ad 100644
--- a/.github/workflows/details-check.yml
+++ b/.github/workflows/details-check.yml
@@ -27,6 +27,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
+ with:
+ # Full history so the base branch ref is available for the
+ # `git diff origin/...HEAD` comparison below (a shallow
+ # checkout has no origin/ and the diff fails).
+ fetch-depth: 0
- name: Detect targeted servers (PR only)
id: targeted