diff --git a/.gitlab/scripts/renovate-post-upgrade.sh b/.gitlab/scripts/renovate-post-upgrade.sh
index a3bfbda99a2c67a3d0dfe0c03883713f2b6e0b44..64951565e05ee4ee5b633d5c578b049fab6bf6ac 100755
--- a/.gitlab/scripts/renovate-post-upgrade.sh
+++ b/.gitlab/scripts/renovate-post-upgrade.sh
@@ -1,5 +1,7 @@
 #!/usr/bin/env sh
 
+set -e
+
 # This script is just used to add the `latest_version` to the
 # list of supported versions because natively that is
 # cumbersome to achieve.
diff --git a/.gitlab/scripts/update-opentofu-versions.sh b/.gitlab/scripts/update-opentofu-versions.sh
index 9798b1cf4b5817b50d9b33a3a5ba1b3083e91ff4..36c372e26351a0b45dc78704f44e7b1f7b493190 100755
--- a/.gitlab/scripts/update-opentofu-versions.sh
+++ b/.gitlab/scripts/update-opentofu-versions.sh
@@ -1,5 +1,7 @@
 #!/usr/bin/env sh
 
+set -e
+
 echo "Updating template files ..."
 
 templates="templates/apply.yml templates/custom-command.yml templates/destroy.yml templates/fmt.yml templates/full-pipeline.yml templates/job-templates.yml templates/plan.yml templates/test.yml templates/validate-plan-apply.yml templates/validate-plan-destroy.yml templates/validate-plan.yml templates/validate.yml"