Skip to content
Snippets Groups Projects

feat: rotate personal, project or group access tokens

1 unresolved thread
Compare and Show latest version
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -185,7 +185,7 @@ func revokeTokenRun(opts *RevokeOptions) error {
case 0:
return cmdutils.FlagError{Err: fmt.Errorf("no token found with the name '%v'.", opts.Name)}
default:
return cmdutils.FlagError{Err: fmt.Errorf("multiple tokens found with the name '%v', use the ID instead.", opts.Name)}
return cmdutils.FlagError{Err: fmt.Errorf("multiple tokens found with the name '%v'. Use the ID instead.", opts.Name)}
}
if err = api.RevokeProjectAccessToken(httpClient, repo.FullName(), token.ID); err != nil {
Loading