From d2b70bae5aaeec0065255485aed2853a8c13a2ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 8 Aug 2024 17:47:46 +0200 Subject: [PATCH] Patch: Avoid error on CodeQL workflow --- github_app_geo_project/module/standard/patch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/github_app_geo_project/module/standard/patch.py b/github_app_geo_project/module/standard/patch.py index 42b87d7511a..7a1170dd1be 100644 --- a/github_app_geo_project/module/standard/patch.py +++ b/github_app_geo_project/module/standard/patch.py @@ -54,6 +54,8 @@ def get_actions(self, context: module.GetActionContext) -> list[module.Action[di if ( context.event_data.get("action") == "completed" and context.event_data.get("workflow_run", {}).get("conclusion") == "failure" + # Don't run on dynamic workflows like CodeQL + and context.event_data.get("workflow", {}).get("path", {}).startswith("dynamic/") ): return [module.Action(priority=module.PRIORITY_STANDARD, data={})] return []