diff --git a/gitlab_deps/hooks.py b/gitlab_deps/hooks.py
index c10727c02799e7710088310d668b5d681c5ad7f8..c5b26d04befd7df138939dbe7e9b5fea2ca92f2b 100644
--- a/gitlab_deps/hooks.py
+++ b/gitlab_deps/hooks.py
@@ -6,6 +6,9 @@ def check_hook(gl, hook_url, webhook_token, project_path, dry_run):
     found = False
     for h in project.hooks.list():
         if h.url == hook_url and h.pipeline_events:
+            if not dry_run:
+                h.token = webhook_token
+                h.save()
             found = True
             break
     if found: