Update Go to 1.18
go mod tidy
doesn't work on a Go 1.18-only setup:
gitlab-org/gitlab!103293 (comment 1163327319)
This commit updates the Docker image to use Go 1.18. Go 1.17 has stopped receiving security updates, and GitLab Omnibus and Cloud Native GitLab are using 1.18.7 today.