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

bash instructions for creating jwt for github app do not work with client id but work with app id #33989

Closed
1 task done
paololazzari opened this issue Jul 16, 2024 · 4 comments
Labels
content This issue or pull request belongs to the Docs Content team github apps Content related to GitHub Apps needs SME This proposal needs review from a subject matter expert waiting for review Issue/PR is waiting for a writer's review

Comments

@paololazzari
Copy link

paololazzari commented Jul 16, 2024

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-json-web-token-jwt-for-a-github-app#example-using-bash-to-generate-a-jwt

What part(s) of the article would you like to see updated?

Running the script with the client id results in a token which when used throws the following error:

{
  "message": "A JSON web token could not be decoded",
  "documentation_url": "https://docs.github.com/rest",
  "status": "401"
}

Running the script with the app id results in a valid token.

@paololazzari paololazzari added the content This issue or pull request belongs to the Docs Content team label Jul 16, 2024
Copy link

welcome bot commented Jul 16, 2024

Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Jul 16, 2024
@paololazzari paololazzari changed the title bash instructions for creating jwt for github app do not work with client_id but work with app id bash instructions for creating jwt for github app do not work with client id but work with app id Jul 16, 2024
@nguyenalex836 nguyenalex836 added waiting for review Issue/PR is waiting for a writer's review github apps Content related to GitHub Apps and removed triage Do not begin working on this issue until triaged by the team labels Jul 17, 2024
@nguyenalex836
Copy link
Contributor

@paololazzari Thanks so much for opening a PR! I'll get this triaged for review ✨

@felicitymay felicitymay added the needs SME This proposal needs review from a subject matter expert label Aug 22, 2024
Copy link
Contributor

Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert 👀

@nguyenalex836
Copy link
Contributor

@paololazzari Apologies for the delay! We recently merged #33859 that I believe resolves the problem this issue is raising. Many apologies for not being able to get to this sooner 💛

I'll go ahead and close out this issue - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content This issue or pull request belongs to the Docs Content team github apps Content related to GitHub Apps needs SME This proposal needs review from a subject matter expert waiting for review Issue/PR is waiting for a writer's review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants