Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[FEAT]: Revoke an installation access token #2963

Open
1 task done
Danielku15 opened this issue Aug 28, 2024 · 1 comment
Open
1 task done

[FEAT]: Revoke an installation access token #2963

Danielku15 opened this issue Aug 28, 2024 · 1 comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request

Comments

@Danielku15
Copy link

Describe the need

Octokit is missing an API for https://docs.github.com/en/rest/apps/installations?apiVersion=2022-11-28#revoke-an-installation-access-token

I'd say it should be added here:

We want to login/logout cleanly similar to https://github.com/actions/create-github-app-token/blob/main/lib/post.js#L31C27-L31C46

SDK Version

Octokit.net 13.0.1

API Version

REST API 2022-11-28

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Danielku15 Danielku15 added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Aug 28, 2024
@kfcampbell kfcampbell added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Aug 30, 2024
@kfcampbell kfcampbell moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Active Aug 30, 2024
@younes101020
Copy link

Hello, you can revoke it using revokeInstallationAccessToken() method.

eg: await octokit.apps.revokeInstallationAccessToken();

make sure to instantiate octokit with createAppAuth authStrategy before this.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

3 participants