This script checks the GitHub App's rate limit status by generating a JWT (JSON Web Token), obtaining an installation access token, and then querying the GitHub API for the rate limit information. It is useful for developers and administrators to monitor and manage their GitHub App's API usage.
Create an internal repo in an organization
This appears to be an undocumented API to download a file from GitHub Packages - use this as a reference to form your own url.
In the UI, you can download a file as well but you'll notice that the download string has an expiring key in the url. This works around that with the -L
to follow redirects.
GraphQL also works, but this may be easier.
Download a file from a GitHub release - if it's a public repo, you wouldn't have to use a bearer token to authenticate
Download a file from a non-public repository
Download a workflow artifact (e.g.: downloading the artifact from the build workflow for the deploy workflow to use)
Enables actions on a repository - similar to gh cli example, but using curl
This script generates a JWT (JSON Web Token) for a GitHub App and uses it to list the installations of the App. It is useful for developers and administrators who need to authenticate as a GitHub App to access GitHub API.
This script is designed to generate a JWT (JSON Web Token) for authenticating as a GitHub App. It then uses this token to perform GitHub API requests, specifically to retrieve information about a specified repository and display the current API rate limit status. This is particularly useful for developers and administrators who need to monitor their GitHub App's API usage and ensure it stays within the GitHub API rate limits.