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 https://api.github.com/user: 401 - Bad credentials // See: https://developer.github.com/v3 (Octokit::Unauthorized)

https://travis-ci.org/github/Zeex/samp-plugin-crashdetect/builds/705088680

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.

Imprint