diff --git a/templates/go/template.yml b/templates/go/template.yml
index 1b675c03114887829899b7050d7e3b1a55d3ed01..46a953828c51da0d5c8601ac995aace67de36c23 100644
--- a/templates/go/template.yml
+++ b/templates/go/template.yml
@@ -64,7 +64,7 @@ go-test_$[[ inputs.job_suffix ]]:
       junit:
         - report-${CI_COMMIT_SHA}.xml
   rules:
-  - if: $[[ inputs.test ]] == "true"
+  - if: '$[[ inputs.test ]] == "true"'
 
 go-build_$[[ inputs.job_suffix ]]:
   stage: "$[[ inputs.build-stage ]]"
@@ -95,4 +95,4 @@ go-build_$[[ inputs.job_suffix ]]:
     paths:
     - "$[[ inputs.output ]]"
   rules:
-  - if: $[[ inputs.build ]] == "true"
\ No newline at end of file
+  - if: '$[[ inputs.build ]] == "true"'
\ No newline at end of file