diff --git a/integrations/gitlab/CHANGELOG.md b/integrations/gitlab/CHANGELOG.md index f5578f1d6a..995f6daea3 100644 --- a/integrations/gitlab/CHANGELOG.md +++ b/integrations/gitlab/CHANGELOG.md @@ -7,6 +7,14 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm +0.1.59 (2024-03-24) +=================== + +### Bug Fixes + +- Fix bug that could not run on startup when not configuring param tokenGroupsHooksOverridMapping (PORT-7326) + + 0.1.58 (2024-03-20) =================== diff --git a/integrations/gitlab/gitlab_integration/ocean.py b/integrations/gitlab/gitlab_integration/ocean.py index 25de6a1051..7276ffe1f7 100644 --- a/integrations/gitlab/gitlab_integration/ocean.py +++ b/integrations/gitlab/gitlab_integration/ocean.py @@ -47,9 +47,10 @@ async def on_start() -> None: hook_override_mapping: dict = integration_config[ "token_group_hooks_override_mapping" ] - sensitive_log_filter.hide_sensitive_strings( - *token_mapping.keys(), *hook_override_mapping.keys() - ) + sensitive_log_filter.hide_sensitive_strings(*token_mapping.keys()) + + if hook_override_mapping is not None: + sensitive_log_filter.hide_sensitive_strings(*hook_override_mapping.keys()) if ocean.event_listener_type == "ONCE": logger.info("Skipping webhook creation because the event listener is ONCE") diff --git a/integrations/gitlab/pyproject.toml b/integrations/gitlab/pyproject.toml index 3ebcec8373..d0183bf411 100644 --- a/integrations/gitlab/pyproject.toml +++ b/integrations/gitlab/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "gitlab" -version = "0.1.58" +version = "0.1.59" description = "Gitlab integration for Port using Port-Ocean Framework" authors = ["Yair Siman-Tov "]