Bug private key in hcp vault secrets

When I put a private key in HCP vault secrets and setup a sync to GitHub actions secrets, the format of they key is altered.
When I put the private key directly in GitHub secrets, the private key stays correct.
Anyone else encountered this?