From ff48dc7555514012b8bbbf87015477e2777a30b9 Mon Sep 17 00:00:00 2001 From: Dima Golovinov Date: Wed, 18 Sep 2024 14:53:23 +0200 Subject: [PATCH] Provide proper checkout configuration for Qodana needs --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d4093ca..3b8f9ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,6 +39,9 @@ jobs: # Check out the current repository - name: Fetch Sources uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit + fetch-depth: 0 # a full history is required for pull request analysis # Validate wrapper - name: Gradle Wrapper Validation