diff --git a/puppet-module-pipeline.yaml b/puppet-module-pipeline.yaml
index 493b0416e23585b4f9ebe66313dd5b010e5e7cc6..9429c5259e9233488aba324b7982b7dd4a9634c7 100644
--- a/puppet-module-pipeline.yaml
+++ b/puppet-module-pipeline.yaml
@@ -32,6 +32,10 @@ pdk-validate:
 
       # For PDK 3.2.0 (it reports as the unreleased 3.1.0)
       if [ "$PDK_VERSION" == "3.1.0" ]; then
+        echo "Locking racc to 1.6.2"
+        sed -e '/"racc"/d' -e "/'racc'/d" -i Gemfile Gemfile.local
+        echo 'gem "racc", "= 1.6.2"' >> Gemfile.local
+
         echo "Locking rexml to 3.2.5"
         sed -e '/"rexml"/d' -e "/'rexml'/d" -i Gemfile Gemfile.local
         echo 'gem "rexml", "= 3.2.5"' >> Gemfile.local