From the documentation for pull_request_target, "This event runs in the context of the base of the pull request, rather than in the context of the merge commit, as the pull_request event does." So CI was running against what had already been merged into main, rather than what was in the pull request.
From the documentation for
pull_request_target
, "This event runs in the context of the base of the pull request, rather than in the context of the merge commit, as the pull_request event does." So CI was running against what had already been merged into main, rather than what was in the pull request.