Skip to content

Octokit createAuth failing #4874

@ZsoltPath

Description

@ZsoltPath

Hi,

I'm not sure how this works for others, but for me the Octokit createAuth call fails with Invalid character error.
https://github.com/github-aws-runners/terraform-aws-github-runner/blame/a8158d4961832afb42085ef7b6075d889c198ac3/lambdas/functions/control-plane/src/github/auth.ts#L94

I think it's in the previous lines the key is decoded from base64 while the function is expecting base64 pem encoding.
https://github.com/octokit/auth-app.js/?tab=readme-ov-file#createappauthoptions-or-new-octokit-auth-

Could someone with more JS knowledge have a look at it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions