diff --git a/GITLAB_METRICS_EXPORTER_VERSION b/GITLAB_METRICS_EXPORTER_VERSION
index ba2906d0666cf726c7eaadd2cd3db615dedfdf3a..f3e956091b9c0df2041aa58d95d8600181e48945 100644
--- a/GITLAB_METRICS_EXPORTER_VERSION
+++ b/GITLAB_METRICS_EXPORTER_VERSION
@@ -1 +1 @@
-main
+2c781b65ccfd6d016c7bfab1982ecb234c4e2cd0
diff --git a/spec/lib/tasks/gitlab/metrics_exporter_task_spec.rb b/spec/lib/tasks/gitlab/metrics_exporter_task_spec.rb
index dfb3c5114703f46a79fcf26ea6d108d4367c483a..4e17e91f0195e3f0e88572ab085487548996a0a2 100644
--- a/spec/lib/tasks/gitlab/metrics_exporter_task_spec.rb
+++ b/spec/lib/tasks/gitlab/metrics_exporter_task_spec.rb
@@ -26,7 +26,7 @@
     let(:expected_clone_params) do
       {
         repo: 'https://gitlab.com/gitlab-org/gitlab-metrics-exporter.git',
-        version: 'main',
+        version: an_instance_of(String),
         target_dir: 'path/to/exporter'
       }
     end