mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-30 13:32:30 +08:00
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 <akashdeep.dhar@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user