Skip to content

Commit ac401a3

Browse files
committed
adding more to readme, updating gitignore
1 parent dd27d31 commit ac401a3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.csv
22
*.txt
33
**/.DS_Store
4+
*.pem

scripts/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ This script will generate a JWT for a GitHub App. It will use the private key an
100100
- You will need to have the `jwt` package installed via `pip3`: `pip3 install jwt`
101101
- The JWT is valid for 10 minutes (maximum)
102102

103+
Script sourced from [GitHub docs](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-json-web-token-jwt-for-a-github-app#example-using-python-to-generate-a-jwt).
104+
103105
## get-app-tokens-for-each-installation.sh
104106

105107
This script will generate generate a JWT for a GitHub app and use that JWT to generate installation tokens for each org installation. The installation tokens, returned as `ghs_abc`, can then be used for normal API calls. It will use the private key and app ID from the GitHub App's settings page and the `get-app-jwt.py` script to generate the JWT, and then use the JWT to generate the installation tokens for each org installation.
@@ -118,6 +120,11 @@ Output example:
118120
>
119121
> ... token: ghs_xyz
120122
123+
Docs:
124+
- [Generate a JWT for a GitHub App](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-json-web-token-jwt-for-a-github-app#example-using-python-to-generate-a-jwt)
125+
- [Generating an installation access token for a GitHub App](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-an-installation-access-token-for-a-github-app#generating-an-installation-access-token)
126+
- [List installations for the authenticated app](https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#list-installations-for-the-authenticated-app)
127+
121128
## get-new-outside-collaborators-added-to-repository.sh
122129

123130
This script will generate a list of new outside collaborators added to a repository. It uses a database file specified to determine if any new users were added to the repository and echo them to the console for review.

0 commit comments

Comments
 (0)