GitHub release token stops working after a few months

I’m starting to feel kind of tired of updating the token in my .trvis.yml, is there any way to make it not expire? It seems to expire every few months.

Example GItHub releases deployment failure:

/home/travis/.rvm/gems/ruby-2.4.5/gems/octokit-4.6.2/lib/octokit/response/raise_error.rb:16:in `on_complete’: GET 401 - Bad credentials // See: (Octokit::Unauthorized)

You need to contact Github support to have them check if anything changed with this token (and/or with your tokens in general) since the last successful deployment.

I suspect that something or someone is regularly pressing “regenerate” for that token.