If the project had multiple pages of vulnerabilities, the script would hang. This change fixes that.
https://gitlab.com/gitlab-org/gitlab/-/issues/384486