github.com/nilium/gitlab-runner@v12.5.0+incompatible/helpers/shorten_token.go (about) 1 package helpers 2 3 func ShortenToken(token string) string { 4 if len(token) >= 8 { 5 return token[0:8] 6 } 7 return token 8 }