earthlab / abc-classroom

Tools to automate github classroom and autograding workflows
https://abc-classroom.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
29 stars 21 forks source link

Replace github authentication workflow #328

Closed kcranston closed 3 years ago

kcranston commented 4 years ago

The current github authentication uses a username + password authentication to get a personal access token and then uses the token for all future API access. The ability to authenticate to the API using username + password is being deprecated, see https://developer.github.com/changes/2020-02-14-deprecating-password-auth/.

Proposed new workflow:

An initial proof-of-concept exists in the githubapp dir on the github-app branch of my fork.

kcranston commented 4 years ago

Implementation detail: planning to simply use requests and call the API directly rather than a using wrapper library for the GitHub API. Originally, we had planned to replace github3 with pygithub (issue #72 ), but neither library has support for the authentication steps and we only need support for two API calls:

lwasser commented 3 years ago

this has been completed!