feat: adds block_external to safe jobs list

This commit is contained in:
Iain Learmonth 2024-11-09 11:10:05 +00:00
parent 4693e994ba
commit 73439a8121

View file

@ -153,7 +153,13 @@ def run_job(job_cls: Type[BaseAutomation], *,
else: else:
automation.state = AutomationState.ERROR automation.state = AutomationState.ERROR
safe_jobs = [ safe_jobs = [
"proxy_cloudfront", "static_aws", "list_http_post", "list_s3", "list_github", "list_gitlab" "proxy_cloudfront",
"static_aws",
"list_http_post",
"list_s3",
"list_github",
"list_gitlab",
"block_external"
] ]
if job.short_name not in safe_jobs: if job.short_name not in safe_jobs:
automation.enabled = False automation.enabled = False