GitHub get main/master branch SHA

gh api repos/${org}/${repository}/commits/main --jq “.sha”