diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index c78b259ac32eb69f918bde4fda0dfa3f5c85b9eb..9a50e2e98ed9a17a79b8fe73fc94861b3fea050c 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -64,6 +64,7 @@ jobs:
         # Womtool validate checks very slowly, so this saves a lot of time.
         run: |
           bash -c '
+            git fetch --depth=1 origin develop
             for WDL_FILE in $(git diff --name-only origin/${{github.base_ref}} | grep -E '*.wdl$'); do
               womtool validate $WDL_FILE
             done