|
| 1 | +# GH Token |
| 2 | + |
1 | 3 | ```sh
|
2 | 4 | * _____ _ *_ _______ * _ * * ** *
|
3 | 5 | / ____| |* | | |__ __| | | * * 🦄 *
|
|
7 | 9 | \_____|_| |_| |_|\___/|_|\_\___|_| |_| *
|
8 | 10 | ```
|
9 | 11 |
|
| 12 | +<!-- markdownlint-disable --> |
| 13 | +
|
10 | 14 | > Create an installation access token for a GitHub app from your terminal
|
11 | 15 |
|
12 | 16 | [](ghtoken) [](LICENSE) 
|
| 17 | +<!-- markdownlint-restore --> |
13 | 18 |
|
14 |
| -[Creates an installation access token](https://docs.github.com/en/rest/reference/apps#create-an-installation-access-token-for-an-app) that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire 1 hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. |
| 19 | +[Creates an installation access token](https://docs.github.com/en/rest/reference/apps#create-an-installation-access-token-for-an-app) that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. |
| 20 | +Installation tokens expire 1 hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. |
15 | 21 |
|
16 | 22 | You can use this access token to make pretty much any REST or GraphQL API call the app is authorized to make!
|
17 | 23 |
|
@@ -60,8 +66,8 @@ wget -O ghtoken \
|
60 | 66 | ### curl
|
61 | 67 |
|
62 | 68 | ```sh
|
63 |
| -# Download a file, name it ghtoken following [L]ocation redirects, and |
64 |
| -# automatically [C]ontinuing (resuming) a previous file transfer then |
| 69 | +# Download a file, name it ghtoken following [L]ocation redirects, and |
| 70 | +# automatically [C]ontinuing (resuming) a previous file transfer then |
65 | 71 | # do a checksum
|
66 | 72 | curl -o ghtoken \
|
67 | 73 | -O -L -C - \
|
@@ -409,7 +415,7 @@ jobs:
|
409 | 415 |
|
410 | 416 | ## Troubleshoot
|
411 | 417 |
|
412 |
| -#### I'm getting: `Something went awry creating the jwt` with `ghtoken generate` |
| 418 | +### I'm getting: `Something went awry creating the jwt` with `ghtoken generate` |
413 | 419 |
|
414 | 420 | Make sure your `pem` file has the extension `.pem`. This is necessary for `jwt-cli` to be able to determine the type of key it's trying to parse.
|
415 | 421 |
|
|
0 commit comments