Skip to content

Support non-user-auth for scheduled task runs #449

@sentry-junior

Description

@sentry-junior

Scheduled tasks run without GitHub credentials, so any task that requires gh CLI access (e.g. reading private repos, creating issues, opening PRs) fails with auth errors. The GitHub plugin injects credentials for interactive runs but does not carry them into scheduled task sandbox executions.

Current behavior

  • GH_TOKEN / GITHUB_TOKEN are not available in the scheduled task environment
  • No MCP GitHub tool is loaded for scheduled runs
  • gh CLI commands against private repos fail with authentication errors

Gap

Scheduled tasks are a first-class feature, but they cannot perform any GitHub operations. Supporting non-user-auth (e.g. a GitHub App token or bot-scoped token) for scheduled task runs would unblock a broad class of automated workflows without requiring a user session to be active.

Options

  • Inject a GitHub App installation token at scheduled task launch time (preferred — no user session dependency)
  • Reuse the last-known user token, but scope it to read-only or short-lived use (fragile, session-coupled)
  • Expose a plugin config surface to opt specific scheduled tasks into GitHub auth

Action taken on behalf of David Cramer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    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