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.
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
andSCOPE_GH_APP_KEY
environment variables.This was tested locally by creating a sample report using
scope report -- echo foobar
:Related to https://github.com/Gusto/dev-environments/issues/445