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