You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web
Giteabot 9b698362a3
Redefine the meaning of column is_active to make Actions Registration Token generation easier (#27143) (#27304)
Backport #27143 by @lunny

Partially Fix #25041

This PR redefined the meaning of column `is_active` in table
`action_runner_token`.
Before this PR, `is_active` means whether it has been used by any
runner. If it's true, other runner cannot use it to register again.

In this PR, `is_active` means whether it's validated to be used to
register runner. And if it's true, then it can be used to register
runners until it become false. When creating a new `is_active` register
token, any previous tokens will be set `is_active` to false.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 year ago
..
admin Another round of `db.DefaultContext` refactor (#27103) (#27262) 1 year ago
auth Another round of `db.DefaultContext` refactor (#27103) (#27262) 1 year ago
devtest Make "cancel" buttons have proper type in modal forms (#25618) 2 years ago
events Implement FSFE REUSE for golang files (#21840) 2 years ago
explore Next round of `db.DefaultContext` refactor (#27089) 2 years ago
feed Add context parameter to some database functions (#26055) 2 years ago
healthcheck Remove `db.DefaultContext` in `routers/` and `cmd/` (#26076) 2 years ago
misc Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" (#25974) 2 years ago
org Another round of `db.DefaultContext` refactor (#27103) (#27262) 1 year ago
repo Another round of `db.DefaultContext` refactor (#27103) (#27262) 1 year ago
shared Redefine the meaning of column is_active to make Actions Registration Token generation easier (#27143) (#27304) 1 year ago
user Another round of `db.DefaultContext` refactor (#27103) (#27262) 1 year ago
base.go Fix all possible setting error related storages and added some tests (#23911) 2 years ago
goget.go Support SSH for go get (#24664) 2 years ago
home.go Reduce usage of `db.DefaultContext` (#27073) 2 years ago
metrics.go Implement FSFE REUSE for golang files (#21840) 2 years ago
nodeinfo.go Implement FSFE REUSE for golang files (#21840) 2 years ago
swagger_json.go Start using template context function (#26254) 2 years ago
web.go Make SSPI auth mockable (#27036) 2 years ago
webfinger.go Add a link to OpenID Issuer URL in WebFinger response (#26000) 2 years ago