Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(git): Trim whitespace around private key data #9856

Merged
merged 3 commits into from
May 5, 2021

Conversation

DCKcode
Copy link
Contributor

@DCKcode DCKcode commented May 4, 2021

Changes:

When parsing a Git private key, remove any leading and trailing whitespace that may be present.

Context:

Fixes #9855 .

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added unit tests, or
  • No new tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@CLAassistant
Copy link

CLAassistant commented May 4, 2021

CLA assistant check
All committers have signed the CLA.

@DCKcode DCKcode changed the title Trim whitespace around private key data Bug Fixes: Trim whitespace around private key data May 4, 2021
@DCKcode
Copy link
Contributor Author

DCKcode commented May 4, 2021

If you need test cases for this, I'd be happy to looking into providing those. Before I do, let me know if this solution would be acceptable.

@DCKcode DCKcode changed the title Bug Fixes: Trim whitespace around private key data fix: Trim whitespace around private key data May 4, 2021
rarkins
rarkins previously approved these changes May 4, 2021
@rarkins rarkins changed the title fix: Trim whitespace around private key data fix(git): Trim whitespace around private key data May 4, 2021
@rarkins rarkins enabled auto-merge (squash) May 4, 2021 19:50
lib/util/git/private-key.ts Outdated Show resolved Hide resolved
@rarkins rarkins disabled auto-merge May 5, 2021 06:47
@HonkingGoose HonkingGoose requested a review from viceice May 5, 2021 08:48
@rarkins rarkins enabled auto-merge (squash) May 5, 2021 08:53
@rarkins rarkins merged commit 36af7e3 into renovatebot:main May 5, 2021
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 25.12.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@DCKcode
Copy link
Contributor Author

DCKcode commented May 5, 2021

Thanks all for fixing my crappy code and getting this in 😄

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git GPG private keys with trailing whitespace result in obscure GPG error
5 participants