From 728f55e4bca2c2cb620f3391f7f80d300be6a71d Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Sat, 10 Jan 2026 09:57:42 -0300 Subject: [PATCH] fix: use PR head SHA for cache-checkout key in pull_request_target events (#26686) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/actions/cache-checkout/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/cache-checkout/action.yml b/.github/actions/cache-checkout/action.yml index 514d8e4c00..5a0242eda0 100644 --- a/.github/actions/cache-checkout/action.yml +++ b/.github/actions/cache-checkout/action.yml @@ -18,7 +18,7 @@ runs: !.git !node_modules !**/node_modules - key: git-checkout-${{ github.head_ref || github.ref_name }}-${{ github.sha }} + key: git-checkout-${{ github.head_ref || github.ref_name }}-${{ github.event.pull_request.head.sha || github.sha }} fail-on-cache-miss: true - name: Delete previous git-checkout caches for this branch @@ -37,4 +37,4 @@ runs: !.git !node_modules !**/node_modules - key: git-checkout-${{ github.head_ref || github.ref_name }}-${{ github.sha }} + key: git-checkout-${{ github.head_ref || github.ref_name }}-${{ github.event.pull_request.head.sha || github.sha }}