Skip to content

Commit eedd901

Browse files
committed
Fix help docs
1 parent 6ca30ba commit eedd901

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Options:
8282
-d <minutes>, --duration <minutes> The expiration duration of the JWT in minutes. [default: 10]
8383
-o <hostname>, --hostname <hostname> The API URL of GitHub. [default: api.github.com]
8484
-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]
8686
-t <token>, --token <token> Access token to revoke. [required]
8787
```
8888
@@ -276,6 +276,17 @@ $ ghtoken installations \
276276
277277
</details>
278278
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+
279290
### Example in a workflow
280291
281292
1. You need to create a secret to store the **applications private key** securely (this can be an organization or a repository secret):

ghtoken

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ Options:
968968
-d <minutes>, --duration <minutes> The expiration duration of the JWT in minutes. [default: 10]
969969
-o <hostname>, --hostname <hostname> The API URL of GitHub. [default: api.github.com]
970970
-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]
972972
973973
Description:
974974
Generates a JWT signed with the supplied key and fetches an

0 commit comments

Comments
 (0)