From 23f52cc48a2b1d4e65c15cb6bc8f44cc7c6961ed Mon Sep 17 00:00:00 2001 From: Akashdeep Dhar Date: Mon, 17 Nov 2025 03:10:42 +0000 Subject: [PATCH] anubis: allow Pagure attachment paths for Fedora Forge references Allow attachment file requests (/issue/raw/files/*) through Anubis for Fedora Forge integration, while maintaining the usual bot protection. Signed-off-by: Akashdeep Dhar --- roles/anubis-el8/files/botPolicy.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/anubis-el8/files/botPolicy.yaml b/roles/anubis-el8/files/botPolicy.yaml index 423b55f808..bb76976d56 100644 --- a/roles/anubis-el8/files/botPolicy.yaml +++ b/roles/anubis-el8/files/botPolicy.yaml @@ -12,6 +12,10 @@ bots: weight: adjust: 20 path_regex: ^/fork/ + # allow Pagure attachment files (referenced from Fedora Forge) + - name: pagure attachment files + path_regex: ^/.+?/issue/raw/files/ + action: ALLOW # these are solid defaults from # https://github.com/TecharoHQ/anubis/blob/main/data/botPolicies.yaml - import: (data)/meta/default-config.yaml