Get app slug by only the app installation token #110341
Replies: 2 comments
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Slug was added in actions/create-github-app-token@v1.8.2...v1.9.0, so this is no longer relevant for me personally. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hi all,
I'm trying to get a username and email of a GitHub App using only the installation token. I checked the Endpoints available for GitHub App installation access tokens list in the docs and tried the app and meta related commands but can't figure it out. Maybe I'm missing something though.
My use case is using semantic-release and have it create releases as a GitHub app. So I want to create the token with https://github.com/actions/create-github-app-token and use the token from the action's output to run another action (that I'm creating) to retrieve the username and email that can be used. I know I can use the following to get the email if you have the username. The username is
${app.slug}[bot]
, but I can't get the app slug from the app installation token (getA JSON web token could not be decoded
on theGET /app
request. Is there another request from which you can get your slug as an app installation, or am I missing something altogether?Beta Was this translation helpful? Give feedback.
All reactions