koji: add scm plugin

Add a scm plugin and some policy for it.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-04-28 10:24:20 -07:00
parent 9a664eadb5
commit f5ca8fcfbf
2 changed files with 7 additions and 0 deletions

View file

@ -163,6 +163,7 @@ keytab = /etc/kojid/kojid.keytab
{{ plugins.append("osbuild") }}
{% endif %}
{{ plugins.append("scmpolicy") }}
; Config for the runroot plugin lives in /etc/kojid/runroot.conf, if enabled
plugins = {{ plugins | join(" ") }}

View file

@ -211,3 +211,9 @@ build_from_scm =
# allow to build from forks
match scm_type GIT GIT+SSH && match scm_host src.fedoraproject.org/forks/* :: allow
{% endif %}
scm =
# allow scratch builds from any commits
bool scratch :: allow
match_all branches * !! deny Commit must be present on some branch
all :: allow