Git-clone: fetch all history for all branches

Would it be possible for the git-clone step to have an input parameter to fetch all history for all branches?

The use-case I have is when I do PR analysis with sonarcloud, it requires to have all branches history being fetched, otherwise, it reports no data on the PR.

For example, on GHA, the checkout action has a fetch-depth input that do that if set to 0: GitHub - actions/checkout: Action for checking out a repo

Hi! Thank you for your feedback. We are tracking this as a feature request. As a work-around, did you consider adding a script step with the git fetch --all command?

Hi! Yes, that’s what I’ve done for now and it’s working well.