actions/checkout@v6 no longer persists git credentials in the global git config the way v4 did, causing git ls-remote calls against private or token-authenticated GitHub repos to fail with authentication errors.
Replace all git ls-remote --heads calls in shopware-version.bash with equivalent gh api calls, which authenticate via the GH_TOKEN environment variable instead of git credentials. Add a github-token input (defaulting to github.token) and expose it as GH_TOKEN in the step env. Remove the now-unnecessary git config credential setup/teardown steps.
actions/checkout@v6no longer persists git credentials in the global git config the way v4 did, causinggit ls-remotecalls against private or token-authenticated GitHub repos to fail with authentication errors.Replace all
git ls-remote --headscalls inshopware-version.bashwith equivalentgh apicalls, which authenticate via theGH_TOKENenvironment variable instead of git credentials. Add agithub-tokeninput (defaulting togithub.token) and expose it asGH_TOKENin the step env. Remove the now-unnecessary git config credential setup/teardown steps.