Could not find ref 'refs/heads/master' in refs/heads, refs/remotes/upstream or refs/remotes/origin

If you’re analyzing a pull request targeting main, main needs to be fetched and present in the local repository.