diff --git a/roles/koji_hub/templates/hub.conf.j2 b/roles/koji_hub/templates/hub.conf.j2 index 59bb17e9a7..99f3b28b66 100644 --- a/roles/koji_hub/templates/hub.conf.j2 +++ b/roles/koji_hub/templates/hub.conf.j2 @@ -197,3 +197,12 @@ sidetag = tag epel8-build :: allow tag epel7-build :: allow all :: deny + +{% if env == "staging" %} +# Policy for building scratch builds +build_from_scm = + # allow scratch build for anything from anywhere + bool scratch :: allow + # allow to build from forks + match scm_type GIT GIT+SSH && match scm_host src.fedoraproject.org/forks/* :: allow +{% endif %}