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 a potential security leak with ssh private keys and ignore empty keys #89

Closed
wants to merge 1 commit into from

Conversation

pmartel12
Copy link

This pull request fix a potential security leak in workflow logs when the private key is not a GitHub deployment key.

Instead of writing the entire private key in logs, the zero based position of the key in the provided list is now outputted.

At the same time, I tweaked the flow to ignore empty keys before verifying if it's a GitHub deployment key!

@mpdude
Copy link
Member

mpdude commented Aug 2, 2021

ssh-add -L outputs public key parameters.

Can you confirm that in fact no private key data is written to logs?

@pmartel12
Copy link
Author

Oh! You're right, I totally missed it. It's the public key that was written to logs, not the private key! 🤦🏻

I confirm that in fact no private key is written to logs.

I will close this pull request since no modifications are required!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants