fix https://ci.woodpecker-ci.org/woodpecker-ci/woodpecker/build/3344/11 Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/600 Reviewed-by: John Olheiser <john+gitea@jolheiser.com> Reviewed-by: techknowlogick <techknowlogick@gitea.io>