Modified from https://docs.gitlab.com/ee/security/tokens/token_troubleshooting.html#identify-dates-when-many-tokens-expire
- In your terminal window, start a Rails console session with sudo gitlab-rails console.
- Paste in the entire dates_when_most_of_tokens_expire.rb script.
- Press Enter.