diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index facb6bae..d37a01b1 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -32,8 +32,8 @@ jobs: with: token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} fetch-depth: 0 - # Try to get the merge commit. - ref: ${{ github.event.pull_request.merge_commit_sha }} + # Checkout the merge commit. + ref: refs/pull/${{ github.event.number }}/merge # MegaLinter - name: MegaLinter