diff --git a/CHANGELOG.md b/CHANGELOG.md
index c994c32281bb1578d88d0a28804957062a138a0c..561f04fa3d0a219c1b67e52c44a60d15864f781d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+## [1.2.5](https://gitlab.com/to-be-continuous/gitleaks/compare/1.2.4...1.2.5) (2022-04-19)
+
+
+### Bug Fixes
+
+* add build dir in safe.directory ([3271704](https://gitlab.com/to-be-continuous/gitleaks/commit/3271704f698ee8ca91177394bfd7f255d8a1cee2))
+
 ## [1.2.4](https://gitlab.com/to-be-continuous/gitleaks/compare/1.2.3...1.2.4) (2021-12-07)
 
 
diff --git a/README.md b/README.md
index 5af4dcd9ab74bb8594e4135566e478fed240c164..3a0ead1e725cfb072695e3f9b473c4f5defdc30f 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ In order to include this template in your project, add the following to your `gi
 ```yaml
 include:
   - project: 'to-be-continuous/gitleaks'
-    ref: '1.2.4'
+    ref: '1.2.5'
     file: '/templates/gitlab-ci-gitleaks.yml'
 ```
 
diff --git a/templates/gitlab-ci-gitleaks.yml b/templates/gitlab-ci-gitleaks.yml
index a3c20ca0a2181750e0864d1d3a398d5ff1ab269b..efa90e9ad9ce040f3c692d9537922f6f112b3015 100644
--- a/templates/gitlab-ci-gitleaks.yml
+++ b/templates/gitlab-ci-gitleaks.yml
@@ -188,7 +188,7 @@ stages:
     fi
   }
 
-  if [[ "$TEMPLATE_CHECK_UPDATE_DISABLED" != "true" ]]; then check_for_update gitleaks "1.2.4"; fi
+  if [[ "$TEMPLATE_CHECK_UPDATE_DISABLED" != "true" ]]; then check_for_update gitleaks "1.2.5"; fi
   unscope_variables
 
   # ENDSCRIPT
@@ -200,7 +200,7 @@ gitleaks:
     entrypoint: [""]
   services:
     - name: "$CI_REGISTRY/to-be-continuous/tools/tracking:master"
-      command: ["--service", "gitleaks", "1.2.4"]
+      command: ["--service", "gitleaks", "1.2.5"]
   stage: test
   variables:
     GIT_DEPTH: 0