diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 52f2e10b993bb50f142d3baa149bb0b1fa62dc07..e9a747f15319a5eba4d361c08bcb87f20154122a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -63,6 +63,15 @@ register package:
         );
       '
 
+    # Remove credentials from Package.toml files
+    - find /tmp/registry -name 'Package.toml' -exec sed -i 's|https://.*@|https://|g' {} \;
+
+    # Stage and commit sanitized changes
+    - |
+      cd /tmp/registry
+      git add .
+      git commit -m "Sanitize Package.toml: Remove secrets from repo field"
+    
     # Push changes to the registry
     - |
       cd /tmp/registry