Best way to include gitlab-runner script

I’ve been using gitlab local runner a lot for deploying my websites lately.
In that regard I’m anticipating that at some point I’d like to include the runner setup script into my repo (if at all allowed) so to avoid the curl | bash idiom.

Have any of you tried that before or it’s something discouraged?