create-github-app-token icon indicating copy to clipboard operation
create-github-app-token copied to clipboard

ERR_OSSL_UNSUPPORTED library: 'DECODER routines' | Self-hosted Windows runner

Open sijjay opened this issue 9 months ago • 4 comments

Hello team,

here the error of using v1 on self-hosted Windows runner:

repositories not set, creating token for all repositories for given owner "Tractor-Supply-Enterprise-Reliability"
Failed to create token for "Tractor-Supply-Enterprise-Reliability" (attempt 1): error:1E08010C:DECODER routines::unsupported
Failed to create token for "Tractor-Supply-Enterprise-Reliability" (attempt 2): error:1E08010C:DECODER routines::unsupported
Failed to create token for "Tractor-Supply-Enterprise-Reliability" (attempt 3): error:1E08010C:DECODER routines::unsupported
Failed to create token for "Tractor-Supply-Enterprise-Reliability" (attempt 4): error:1E08010C:DECODER routines::unsupported
Error: error:1E08010C:DECODER routines::unsupported
    at createPrivateKey (node:internal/crypto/keys:632:12)
    at convertPrivateKey (E:\actions-runner\_work\_actions\actions\create-github-app-token\v1\dist\main.cjs:41368:50)
Error: error:1E08010C:DECODER routines::unsupported
    at getToken (E:\actions-runner\_work\_actions\actions\create-github-app-token\v1\dist\main.cjs:41376:31)
    at githubAppJwt (E:\actions-runner\_work\_actions\actions\create-github-app-token\v1\dist\main.cjs:41426:23)
    at getAppAuthentication (E:\actions-runner\_work\_actions\actions\create-github-app-token\v1\dist\main.cjs:41589:37)
    at hook4 (E:\actions-runner\_work\_actions\actions\create-github-app-token\v1\dist\main.cjs:41887:37)
    at newApi (E:\actions-runner\_work\_actions\actions\create-github-app-token\v1\dist\main.cjs:40702:36)
    at getTokenFromOwner (E:\actions-runner\_work\_actions\actions\create-github-app-token\v1\dist\main.cjs:42197:26)
    at E:\actions-runner\_work\_actions\actions\create-github-app-token\v1\dist\main.cjs:42176:13
    at RetryOperation._fn (E:\actions-runner\_work\_actions\actions\create-github-app-token\v1\dist\main.cjs:42080:30) {
  library: 'DECODER routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_UNSUPPORTED',
  attemptNumber: 4,
  retriesLeft: 0
}

Is windows OS supported by this action or not? Thank in advance

sijjay avatar Mar 17 '25 20:03 sijjay

I got the same error on a linux runner when my private key was not correct (unintentional linebreak). Generating a new one in the app settings (just to be sure) and using that fixed my problem.

RobinMaas95 avatar Mar 19 '25 08:03 RobinMaas95

@RobinMaas95 thank you for your feedback! The thing is the same key works fine on Linux machine. I have to run some jobs on Linux, some on windows due to some dependencies. And the key doesn't work properly on windows. I had to create a python script to generate it instead, and it works. So, pretty sure, something might be wrong with this action

sijjay avatar Mar 20 '25 02:03 sijjay

Check your line endings. My --- BEGIN RSA PRIVATE KEY --- had the /n stripped somehow.

seanmann-synth avatar Aug 04 '25 19:08 seanmann-synth

@sijjay could you confirm if the above comments helped resolve your issue?

gr2m avatar Aug 11 '25 03:08 gr2m