mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
We are not on top of expiring bot tokens and we usually only notice when someone else points it out. It is also a bit cumbersome to add new bot tokens, so avoid the issue altogether, by just extending the lifetime of the bot tokens continuously. Fix #617
8 lines
231 B
Django/Jinja
8 lines
231 B
Django/Jinja
bots = [{{ gitlab_bots | map("to_json") | join(', ') }}]
|
|
|
|
bots.each do |username|
|
|
puts "Bot user: #{username}"
|
|
user = User.find_by_username(username)
|
|
user.personal_access_tokens.update_all(expires_at: 12.months.from_now)
|
|
end
|