From 3044b823f3056b17035ee1869d9a07999a5a1129 Mon Sep 17 00:00:00 2001 From: clawbot Date: Thu, 12 Nov 2026 00:57:39 +0000 Subject: [PATCH] Core Rule Set: a repository's name passes in the adopt form's id (closes #365) While bodies are read, the admin forms that adopt or delete an unadopted repository were refused when the repository's name held a command or a system file's name, such as alice/python3-app, alice/powershell-scripts or alice/.profile. id there now skips 930120, 932120 and 932260, on gitea's /-/admin/repos/unadopted and Forgejo's /admin/repos/unadopted. Model: opus-5-5 --- SPEC.md | 11 ++++-- internal/coreruleset/coreruleset_test.go | 45 ++++++++++++++++++++++++ internal/coreruleset/gitea.conf | 20 +++++++++-- 3 files changed, 70 insertions(+), 6 deletions(-) diff --git a/SPEC.md b/SPEC.md index c98afe0..8520a61 100644 --- a/SPEC.md +++ b/SPEC.md @@ -812,9 +812,9 @@ The changes hold in front of every app, and no setting undoes them: a push reuses a layer, `from` names the image the layer comes from. An image such as `owner/python3-app` would have that push refused. 8. On gitea's paths, some fields skip the rules that refused ordinary gitea - requests there. They are the fields where gitea sends a search, a file name - or a branch name. `internal/coreruleset/gitea.conf` lists each rule and the - request it refused. The fields are: + requests there. They are the fields where gitea sends a search, a file name, + a branch name or a repository's name. `internal/coreruleset/gitea.conf` lists + each rule and the request it refused. The fields are: - `q` on gitea's searches of code, of issues and pull requests, and of commits. A code search holds code, such as `