oscope-dev / scope

Scoping user machines
https://oscope-dev.github.io/scope/
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

Enable GitHub App authentication for report distribution #105

Closed noizwaves closed 6 months ago

noizwaves commented 6 months ago

Previously, submitting reports as GitHub issues only Personal Access Tokens, which have several cons (tied to individuals, require manual rotation on the order of every few months).

This PR adds GitHub App based authentication via the SCOPE_GH_APP_ID and SCOPE_GH_APP_KEY environment variables.

This was tested locally by creating a sample report using scope report -- echo foobar:

❯ bin/scope report -- echo foobar
 INFO Report was uploaded to https://github.com/Gusto/gusto_scope_testing/issues/3.

Screenshot 2024-04-10 at 8 58 03 AM

Related to https://github.com/Gusto/dev-environments/issues/445