Skip to content
Snippets Groups Projects
Commit aec721c2 authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

Merge branch 'malowe/main/eca-script-debug' into 'main'

Add ability to allow list group namespaces to bypass ECA

See merge request !195
parents 7f8fb71e 89281e7a
No related branches found
No related tags found
1 merge request!195Add ability to allow list group namespaces to bypass ECA
Pipeline #47524 passed
......@@ -22,6 +22,7 @@ ALLOW_LIST_PROJECTS = ['/eclipse/oniro-core/meta-ts',
'/eclipse/oniro-core/meta-seco-intel',
'/eclipse/oniro-core/meta-zephyr'
]
ALLOW_LIST_GROUPS = ['eclipsefdn/it/webdev/eclipse.org-php-archives/']
STRICT_MODE_ROOT_GROUPS = ['eclipse-research-labs/']
## Track whether forked project for error reporting (failing vs non-failing)
......@@ -118,6 +119,9 @@ if (nil_or_empty(project_url)) then
elsif (ALLOW_LIST_PROJECTS.any? {|repo_namespace| "#{HOST_URL}#{repo_namespace}" == project_url}) then
puts "Found allow listed project, skipping validation"
exit 0
elsif (ALLOW_LIST_GROUPS.any? {|group_namespace| project_json_data['path_with_namespace'].start_with?(group_namespace)}) then
puts "Found allow listed group, skipping validation"
exit 0
end
## Get all new commits for branch, relative to itself for existing branch, relative to tree for new
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment