File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ Options:
82
82
-d <minutes>, --duration <minutes> The expiration duration of the JWT in minutes. [default: 10]
83
83
-o <hostname>, --hostname <hostname> The API URL of GitHub. [default: api.github.com]
84
84
-j, --install_jwt_cli Install jwt-cli (dependency) on the current system. [optional]
85
- -l <id>, --installation_id <id> GitHub App installation id. [default = latest id]
85
+ -l <id>, --installation_id <id> GitHub App installation id. [default: latest id]
86
86
-t <token>, --token <token> Access token to revoke. [required]
87
87
```
88
88
@@ -276,6 +276,17 @@ $ ghtoken installations \
276
276
277
277
</details>
278
278
279
+ #### Revoke an installation access token
280
+
281
+ ```sh
282
+ # Run ghtoken with the revoke command
283
+ $ ghtoken revoke \
284
+ --token "v1.bb1___168d_____________1202bb8753b133919"
285
+ --hostname "github.example.com"
286
+
287
+ 204: Token revoked successfully
288
+ ```
289
+
279
290
### Example in a workflow
280
291
281
292
1. You need to create a secret to store the **applications private key** securely (this can be an organization or a repository secret):
Original file line number Diff line number Diff line change @@ -968,7 +968,7 @@ Options:
968
968
-d <minutes>, --duration <minutes> The expiration duration of the JWT in minutes. [default: 10]
969
969
-o <hostname>, --hostname <hostname> The API URL of GitHub. [default: api.github.com]
970
970
-j, --install_jwt_cli Install jwt-cli (dependency) on the current system. [optional]
971
- -l <id>, --installation_id <id> GitHub App installation id. [default = latest id]
971
+ -l <id>, --installation_id <id> GitHub App installation id. [default: latest id]
972
972
973
973
Description:
974
974
Generates a JWT signed with the supplied key and fetches an
You can’t perform that action at this time.
0 commit comments