Skip to content

Auth credentials provisioned with incomplete scopes #319

@sentry-junior

Description

@sentry-junior

When Junior provisions GitHub auth credentials during a workflow, the initial OAuth grant may not include all scopes that later operations require. When a subsequent operation needs a scope that wasn't requested upfront, Junior fails silently or gets stuck — it doesn't know how to re-prompt for the missing scopes.

  • Initial auth flow requests a limited set of scopes sufficient for the first operation
  • Later operations in the same or future sessions may require additional scopes (e.g. repo write after initially only needing read)
  • No mechanism to detect missing scopes and trigger a re-authorization flow
  • Junior doesn't surface a clear error or remediation path to the user

Expected behavior:

  • Auth should request the full set of scopes needed across all supported operations upfront, or
  • When a missing-scope error is detected, Junior should prompt the user to re-authorize with the required scopes

Action taken on behalf of David Cramer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions