Backport #26733 manually Co-authored-by: Giteabot <teabot@gitea.io> (cherry picked from commit 307ee2c044abe62c7e61787a6283e670fb3031ab)