From 653f53fec36efa9cf99d7fda185f9592c228be0d Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 29 Jul 2026 18:45:38 -0700 Subject: [PATCH] fix(ci): check out pull request head for detekt --- .github/workflows/detekt.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/detekt.yml b/.github/workflows/detekt.yml index 4f26e7a45..a96f3f873 100644 --- a/.github/workflows/detekt.yml +++ b/.github/workflows/detekt.yml @@ -14,6 +14,8 @@ jobs: - name: Clone repo uses: actions/checkout@v7 with: + repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} + ref: ${{ github.event.pull_request.head.sha || github.sha }} fetch-depth: 1 - name: detekt