Check the token's owner and repository when registering a runner (#30406)

Fix #30378
This commit is contained in:
Zettat123 authored and GitHub committed 2024-04-11 16:01:44 +08:00
1 parent 96d31fe0a8
commit 0fe9f93eb4
4 files changed
+19

No files matched your search

+1
View File
@@ -163,6 +163,7 @@ func DeleteRepositoryDirectly(ctx context.Context, doer *user_model.User, repoID
&actions_model.ActionScheduleSpec{RepoID: repoID},
&actions_model.ActionSchedule{RepoID: repoID},
&actions_model.ActionArtifact{RepoID: repoID},
&actions_model.ActionRunnerToken{RepoID: repoID},
); err != nil {
return fmt.Errorf("deleteBeans: %w", err)
}