You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hints=append(hints, "The provided Sourcegraph access token does not match the expected format (sgp_<40 hex chars> or sgp_<instance-id>_<40 hex chars>). Was it copied incorrectly or truncated?")
258
+
} else {
259
+
hints=append(hints, "The Sourcegraph access token may be invalid, expired, or you may be connecting to the wrong Sourcegraph instance.")
260
+
}
261
+
} elseifisForbidden {
262
+
hints=append(hints, "You may not have sufficient permissions on this Sourcegraph instance.")
hints=append(hints, fmt.Sprintf("No -github-token was provided. If this Sourcegraph instance enforces code host authentication, retry with -github-token=<token> for a token with access to %s.", codeintelUploadFlags.repo))
274
+
}
275
+
276
+
ifcodeintelUploadFlags.gitLabToken!="" {
277
+
ifisUnauthorized {
278
+
hints=append(hints, "The supplied -gitlab-token may be invalid.")
273
279
} else {
274
-
actionableHints=append(actionableHints,
275
-
fmt.Sprintf("Please retry your request with a -gitlab-token=XXX with write access to %s.", codeintelUploadFlags.repo),
276
-
"This token will be used to check with the code host that the uploading user has write access to the target repository.",
277
-
)
280
+
hints=append(hints, "The supplied -gitlab-token may lack the required permissions.")
278
281
}
279
-
} else {
280
-
actionableHints=append(actionableHints,
281
-
"Verification is supported for the following code hosts: github.com, gitlab.com.",
282
-
"Please request support for additional code host verification at https://github.com/sourcegraph/sourcegraph/issues/4967.",
hints=append(hints, fmt.Sprintf("No -gitlab-token was provided. If this Sourcegraph instance enforces code host authentication, retry with -gitlab-token=<token> for a token with access to %s.", codeintelUploadFlags.repo))
0 commit comments