Skip to content

fix: Github app pem needs to have proper newlines before creating jwt#15

Merged
dklawren merged 2 commits intomainfrom
github-pem-fix
Mar 24, 2026
Merged

fix: Github app pem needs to have proper newlines before creating jwt#15
dklawren merged 2 commits intomainfrom
github-pem-fix

Conversation

@dklawren
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Normalizes the GITHUB_PRIVATE_KEY environment variable so GitHub App PEM keys stored with escaped newlines (\\n) are converted to real newlines before JWT signing, improving reliability in Docker/CI deployments.

Changes:

  • Convert escaped newline sequences (\\n) in GITHUB_PRIVATE_KEY to actual newlines prior to authentication setup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@cgsheeh cgsheeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a test for this would be ideal.

@dklawren dklawren merged commit 20a1abd into main Mar 24, 2026
4 checks passed
@dklawren dklawren deleted the github-pem-fix branch March 24, 2026 20:14
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.

3 participants