For usual builds commits are here github.context.sha but for pull requests actual commits are here github.context.payload.pull_request?.head.sha
how to github app