Nabil A.
Nabil A.

Reputation: 3400

How to get a GitHub App access token via shell

Given an app id and secret (pem), how can I get an access token for a repo my app is installed at via a shell script?

Upvotes: 3

Views: 2037

Answers (1)

Nabil A.
Nabil A.

Reputation: 3400

This script is what you are looking for. It uses only open-ssl, jq and curl. You can either get a token only for a given repo or all repos the app is installed to.

Upvotes: 5

Related Questions