-
Notifications
You must be signed in to change notification settings - Fork 143
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
Action fails on ubuntu-jammy runner #54
Comments
Tries to help with tibdex#54
I'm also getting this error, when will the fix be merged? |
@hamnis is there a way to use the action from your fork? I wanted to see if it fixes the issue for me |
No idea if I need to tag as a release or not. One way is to compile the action locally then adding the dist folder and the |
Seems like this should be possible: https://stackoverflow.com/a/68286342 |
Thanks for looking it up for me. This way I tried first and it didn't work producing the following error
I tried branch, sha, and local copy - it needs to be compiled like you said in your other reply. |
@prein try using the upgrade-octocat-auth-app-dist branch |
@hamnis I tried with your reference, still same error. it seems this is an issue with node 16 and openssl, see https://stackoverflow.com/questions/72104449/node-js-crypto-fails-to-sign-pem-key-string-from-file-with-error25066067dso-su fixe - name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1.7.0
env:
OPENSSL_CONF: /dev/null fixed it for me. |
@jazzlyn thanks for sharing! It worked for me too @hamnis I got it to run with the action compiled locally, but got a different error
Sharing the code just for completeness
|
Can you please check if the issue still occurs with the latest version (1.8.0)? |
I've tested the v1.8. Now I'm facing this error when using the key which is created from the private keys section of the github app. Error: Error: secretOrPrivateKey must be an asymmetric key when using RS256 Running |
Seems to work for us on ubuntu-latest / ubuntu-jammy. Runner image version 20230219.1 |
Just wanted to note here that as mentioned above adding below to
|
I'm still getting this error
i tried all fixes mentioned here, but it still doesn't work. (with i added this, in my steps - name: Generate Org. level Access token
id: generate_token
uses: tibdex/github-app-token@v1.8.0
with:
app_id: ${{ secrets.INTERNAL_APP_ID }}
private_key: ${{ secrets.INTERNAL_APP_PRIVATE_KEY }}
env:
OPENSSL_CONF: /dev/null just for completeness, |
...
I faced it as well, then I realized that that value that you see above, is a hash shown on GitHub application page, rather than the key itself. The actual key is downloaded by your browser when you press "Generate private key" on GitHub App settings page (that's a file that ends with .private-key.pem). Using that file as the key makes it work as expected. |
Can someone check if the issue still occurs with the latest version ( |
@tibdex i also having these issues and tested different versions. Just getting more detailed error messages: |
Description
When using the action on a github runner with ubuntu-jammy (22.04) it fails with:
Error
Usage
References
The text was updated successfully, but these errors were encountered: