Skip to content

[Feature] Restrict GitHub access to allowed repo's only #61

Closed

Description

@MLVerheij

Feature Description

I am starting using termdock and I do not feel comfortable giving access to my whole github account and all repositories. I could not find a way to specificy the repo's I would like to grant access to. Which is the norm in other applications integrations.

Proposed Solution

See above.

Alternatives Considered

No response

Priority

None

Implementation

  • I'd be willing to help implement this feature
  • I can provide detailed requirements/specifications
  • I can help with testing

Additional Context

No response

Activity

  1. added
    api
    architecture
    feature
    priority:P2
    scope:git
    on Oct 6, 2026
  2. github-actions commented on Oct 6, 2026

    @github-actions
    Contributor

    This issue is being tracked internally. Thank you for reporting!

  3. cyh7789 commented on Oct 6, 2026

    @cyh7789
    Collaborator

    @MLVerheij Thanks for raising this, it's a fair concern.

    Termdock only uses the GitHub token for three things: reading your username, creating a new repository when you ask it to, and submitting in-app feedback as an issue to this repo. It never reads, clones, or modifies your existing repositories.

    The problem is that the login currently requests the repo scope, which GitHub presents as full access to all of your public and private repositories. That is far more than we need.

    In v1.23 we will request only public_repo and read:user by default, and ask for the broader repo scope only at the moment you choose to create a private repository from Termdock.

    Selecting individual repositories isn't something GitHub supports for OAuth apps (only GitHub Apps can be limited per repository), so the fix is to request the smallest scope we actually need rather than a per-repo picker.

    In the meantime, if you have already authorized Termdock you can revoke it any time under GitHub Settings → Applications → Authorized OAuth Apps.

  4. cyh7789 commented on Oct 11, 2026

    @cyh7789
    Collaborator

    @MLVerheij This is now available in v1.23.0.

    • Signing in to GitHub now requests only public_repo and read:user. The authorization page lists public repositories and read-only profile data, with no private repository access.
    • Termdock asks for the broader repo scope only when you choose to create a private repository, and GitHub shows a separate prompt for it at that moment.
    • Submitting feedback from the app works with the reduced scope.

    If you authorized Termdock before this release, GitHub keeps the scopes you granted back then. To move to the reduced scope, revoke Termdock under GitHub Settings → Applications → Authorized OAuth Apps, sign out of GitHub in Termdock, and sign in again.

    Thanks again for raising this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiarchitecturefeaturepriority:P2scope:gittriage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions