forgejo/routers/web/repo/setting
Gusted 5b30b7dc6f
fix(sec): web route delete runner
The web route to delete action runners did not check if the ID that was
given belonged to the context it was requested in, this made it possible
to delete every existing runner of a instance by a authenticated user.

The code was reworked to ensure that the caller of the delete
runner function retrieved the runner by ID and then checks if it belongs
to the context it was requested in, although this is not an optimal
solution it is consistent with the context checking of other code for
runners.

(cherry picked from commit 567765be03d56d6c8c36bb783c330c8ca70b1aca)

Conflicts:
	models/actions/runner.go
	models/actions/runner_test.go
  conflicting UUID bug fix and associated tests do not exist
2025-02-08 07:50:19 +00:00
..
avatar.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
collaboration.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
default_branch.go [ACTIONS] port scheduled actions from Gitea 2024-03-26 16:51:56 +01:00
deploy_key.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
git_hooks.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
lfs.go Show lock owner instead of repo owner on LFS setting page (#31788) (#31817) 2024-08-18 07:01:03 +02:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
protected_branch.go [PORT] gitea#30430: Fix rename branch 500 when the target branch is deleted but exist in database 2024-04-15 15:52:24 +00:00
protected_tag.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
runners.go fix(sec): web route delete runner 2025-02-08 07:50:19 +00:00
secrets.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
setting.go fix: add ID check for updating push mirror interval 2024-11-15 11:58:37 +01:00
settings_test.go enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00
variables.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
webhook.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-05 19:36:03 +00:00