Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub App credentials for commits
These can be obtained using the following command: export APP_ID=123456 export APP_SECRET="$(cat app.private-key.pem)" export GH_REPO=owner/repo export TOKEN=$(bash get_github_app_token.sh) curl -X PUT \ -H "Authorization: token ${TOKEN}" \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/$GH_REPO/contents/test-file \ -d '{"message":"message","content":"Y29udGVudA==","branch":"test"}' This will create a commit on branch `test`. The branch must exist. The command will return a JSON that has wanted credentials. This needs open-ssl, jq and curl, and the following script: https://gist.github.com/987Nabil/594764a7444cb5eee0636607d06f43c5
- Loading branch information