diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 718914140cdacf575659b5cd3455671da7a27b83..ab51d5cdff2c70aad8ed28087d8ed1c0290a2473 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,7 @@ testCommit:
     - cp .config/ci.yml .config/default.yml
     - cp .config/ci.yml .config/test.yml
     - corepack enable
-    - corepack prepare pnpm@latest --activate
+    - corepack install
     - git submodule update --init
     - pnpm install --frozen-lockfile
     - pnpm run build
@@ -76,8 +76,6 @@ buildDocker:
   image:
     name: gcr.io/kaniko-project/executor:debug
     entrypoint: [""]
-  variables:
-    COREPACK_DEFAULT_TO_LATEST: 0
   script:
     - >-
       /kaniko/executor