Empty checkout key on Windows pipeline only

Hello! I’m running three separate pipelines for Windows, macOS and Linux. While the mac and Linux builds are succeeding, the Windows pipeline fails at the checkout step, with the following output:

Cloning into '.'...
Creating .ssh directory
Adding the following entries to known_hosts:
github.com ssh-rsa ###
github.com ecdsa-sha2-nistp256 ###
github.com ssh-ed25519 ###
bitbucket.org ssh-rsa ###
gitlab.com ecdsa-sha2-nistp256 ###

Warning: checkout key has zero length
Writing SSH key for checkout to "C:\\Users\\circleci.PACKER-633B1A5A\\.ssh\\id_rsa"
Cloning git repository
Load key "C:/Users/circleci.PACKER-633B1A5A/.ssh/id_rsa": invalid format
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.

My configuration looks like this:

version: 2.1

orbs:
  win: circleci/windows@5.0
  aws-s3: circleci/aws-s3@3.1.1

aliases:
  - &windows-env
    executor:
      name: win/default
      shell: bash.exe

...
jobs:
  windows_build:
    <<: *windows-env
    environment:
      PLATFORM: windows
    steps:
      - checkout
      - install_cmake_windows
      - pull_dependencies
      - build_library
      - persist
      - store_to_aws

Keep in mind that checkout works for both other platforms. Any ideas what the problem at hand might be? Is there something special about the Windows orb that I’ve missed?

Explicitly adding the ssh key solved it for me. I think putting a ssh key with a correct hostname is supposed to be added automatically, but it did not work for me (gitlab integration).

  windows_job:
    executor:
      name: windows/default
      size: medium
    steps:
      - add_ssh_keys:
          fingerprints:
            - "XX:XX:XX:XX"
      - checkout