diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index 89fe4dfb6b2..3003efda52b 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -26,6 +26,8 @@ jobs: # Checkout the HEAD of the PR instead of the merge commit. # This may include unrelated files if the PR branch is not up to date with the upstream. # ref: ${{ github.event.pull_request.head.sha }} + # Checkout the merge commit. + ref: refs/pull/${{ github.event.number }}/merge fetch-depth: 0 # So we can use secrets.ALIBUILD_GITHUB_TOKEN to push later. persist-credentials: false