> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect GitHub with Personal Access Token – StackOne Hub

> Link a GitHub account in the StackOne Hub using Personal Access Token. End-user guide to authorize the integration and start using GitHub actions.

<Warning>Owner privileges in your GitHub organization are required to generate a Personal Access Token with organization-level permissions.</Warning>

<Panel>
  <div className="not-prose guides-scope-selector" data-guides-scope-selector data-guide-actions-json="[{&#x22;id&#x22;:&#x22;github_list_workflow_runs&#x22;,&#x22;label&#x22;:&#x22;List Workflow Runs&#x22;,&#x22;scopes&#x22;:[&#x22;ActionsRead&#x22;,&#x22;workflow&#x22;]},{&#x22;id&#x22;:&#x22;github_get_workflow_run&#x22;,&#x22;label&#x22;:&#x22;Get Workflow Run&#x22;,&#x22;scopes&#x22;:[&#x22;ActionsRead&#x22;,&#x22;workflow&#x22;]},{&#x22;id&#x22;:&#x22;github_cancel_workflow_run&#x22;,&#x22;label&#x22;:&#x22;Cancel Workflow Run&#x22;,&#x22;scopes&#x22;:[&#x22;ActionsWrite&#x22;,&#x22;workflow&#x22;]},{&#x22;id&#x22;:&#x22;github_re_run_workflow&#x22;,&#x22;label&#x22;:&#x22;Re-run Workflow&#x22;,&#x22;scopes&#x22;:[&#x22;ActionsWrite&#x22;,&#x22;workflow&#x22;]},{&#x22;id&#x22;:&#x22;github_list_workflow_jobs&#x22;,&#x22;label&#x22;:&#x22;List Workflow Jobs&#x22;,&#x22;scopes&#x22;:[&#x22;ActionsRead&#x22;,&#x22;workflow&#x22;]},{&#x22;id&#x22;:&#x22;github_list_artifacts&#x22;,&#x22;label&#x22;:&#x22;List Artifacts&#x22;,&#x22;scopes&#x22;:[&#x22;ActionsRead&#x22;,&#x22;workflow&#x22;]},{&#x22;id&#x22;:&#x22;github_download_artifact&#x22;,&#x22;label&#x22;:&#x22;Download Artifact&#x22;,&#x22;scopes&#x22;:[&#x22;ActionsRead&#x22;,&#x22;workflow&#x22;]},{&#x22;id&#x22;:&#x22;github_create_workflow_dispatch&#x22;,&#x22;label&#x22;:&#x22;Trigger Workflow&#x22;,&#x22;scopes&#x22;:[&#x22;ActionsWrite&#x22;,&#x22;WorkflowsWrite&#x22;,&#x22;workflow&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_commits&#x22;,&#x22;label&#x22;:&#x22;List Commits&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_get_commit&#x22;,&#x22;label&#x22;:&#x22;Get Commit&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_get_repository_content&#x22;,&#x22;label&#x22;:&#x22;Get Repository Content&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_or_update_file&#x22;,&#x22;label&#x22;:&#x22;Create Or Update File&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_delete_file&#x22;,&#x22;label&#x22;:&#x22;Delete File&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_deployment&#x22;,&#x22;label&#x22;:&#x22;Create Deployment&#x22;,&#x22;scopes&#x22;:[&#x22;DeploymentsWrite&#x22;,&#x22;repo_deployment&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_deployments&#x22;,&#x22;label&#x22;:&#x22;List Deployments&#x22;,&#x22;scopes&#x22;:[&#x22;DeploymentsRead&#x22;,&#x22;repo_deployment&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_deployment_status&#x22;,&#x22;label&#x22;:&#x22;Create Deployment Status&#x22;,&#x22;scopes&#x22;:[&#x22;DeploymentsWrite&#x22;,&#x22;repo_deployment&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_delete_deployment&#x22;,&#x22;label&#x22;:&#x22;Delete Deployment&#x22;,&#x22;scopes&#x22;:[&#x22;DeploymentsWrite&#x22;,&#x22;repo_deployment&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_unified_get_me&#x22;,&#x22;label&#x22;:&#x22;Get Unified Credentials&#x22;,&#x22;scopes&#x22;:[&#x22;ProfileRead&#x22;,&#x22;EmailAddressesRead&#x22;]},{&#x22;id&#x22;:&#x22;github_unified_list_groups&#x22;,&#x22;label&#x22;:&#x22;List Unified Groups&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;]},{&#x22;id&#x22;:&#x22;github_unified_get_group&#x22;,&#x22;label&#x22;:&#x22;Get Unified Group&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;]},{&#x22;id&#x22;:&#x22;github_unified_list_organizations&#x22;,&#x22;label&#x22;:&#x22;List Unified Organizations&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;]},{&#x22;id&#x22;:&#x22;github_unified_get_organization&#x22;,&#x22;label&#x22;:&#x22;Get Unified Organization&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;]},{&#x22;id&#x22;:&#x22;github_unified_list_users&#x22;,&#x22;label&#x22;:&#x22;List Unified Users&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;]},{&#x22;id&#x22;:&#x22;github_unified_get_user&#x22;,&#x22;label&#x22;:&#x22;Get Unified User&#x22;,&#x22;scopes&#x22;:[&#x22;read:user&#x22;]},{&#x22;id&#x22;:&#x22;github_list_issues&#x22;,&#x22;label&#x22;:&#x22;List Issues&#x22;,&#x22;scopes&#x22;:[&#x22;IssuesRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_issue&#x22;,&#x22;label&#x22;:&#x22;Create Issue&#x22;,&#x22;scopes&#x22;:[&#x22;IssuesWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_get_issue&#x22;,&#x22;label&#x22;:&#x22;Get Issue&#x22;,&#x22;scopes&#x22;:[&#x22;IssuesRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_update_issue&#x22;,&#x22;label&#x22;:&#x22;Update Issue&#x22;,&#x22;scopes&#x22;:[&#x22;IssuesWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_issue_comment&#x22;,&#x22;label&#x22;:&#x22;Create Issue Comment&#x22;,&#x22;scopes&#x22;:[&#x22;IssuesWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_issue_comments&#x22;,&#x22;label&#x22;:&#x22;List Issue Comments&#x22;,&#x22;scopes&#x22;:[&#x22;IssuesRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_authenticated_user_organizations&#x22;,&#x22;label&#x22;:&#x22;List Authenticated User Organizations&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_list_user_organizations&#x22;,&#x22;label&#x22;:&#x22;List User Organizations&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_get_organization&#x22;,&#x22;label&#x22;:&#x22;Get Organization&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_update_organization&#x22;,&#x22;label&#x22;:&#x22;Update Organization&#x22;,&#x22;scopes&#x22;:[&#x22;AdministrationWrite&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_list_organization_members&#x22;,&#x22;label&#x22;:&#x22;List Organization Members&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_check_organization_membership&#x22;,&#x22;label&#x22;:&#x22;Check Organization Membership&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_get_organization_membership&#x22;,&#x22;label&#x22;:&#x22;Get Organization Membership&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_list_authenticated_user_organization_memberships&#x22;,&#x22;label&#x22;:&#x22;List Authenticated User Organization Memberships&#x22;,&#x22;scopes&#x22;:[&#x22;read:org&#x22;]},{&#x22;id&#x22;:&#x22;github_invite_organization_member&#x22;,&#x22;label&#x22;:&#x22;Invite Organization Member&#x22;,&#x22;scopes&#x22;:[&#x22;MembersWrite&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_remove_organization_member&#x22;,&#x22;label&#x22;:&#x22;Remove Organization Member&#x22;,&#x22;scopes&#x22;:[&#x22;MembersWrite&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_list_pull_requests&#x22;,&#x22;label&#x22;:&#x22;List Pull Requests&#x22;,&#x22;scopes&#x22;:[&#x22;PullRequestsRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_pull_request&#x22;,&#x22;label&#x22;:&#x22;Create Pull Request&#x22;,&#x22;scopes&#x22;:[&#x22;PullRequestsWrite&#x22;,&#x22;ContentsRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_get_pull_request&#x22;,&#x22;label&#x22;:&#x22;Get Pull Request&#x22;,&#x22;scopes&#x22;:[&#x22;PullRequestsRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_update_pull_request&#x22;,&#x22;label&#x22;:&#x22;Update Pull Request&#x22;,&#x22;scopes&#x22;:[&#x22;PullRequestsWrite&#x22;,&#x22;ContentsRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_merge_pull_request&#x22;,&#x22;label&#x22;:&#x22;Merge Pull Request&#x22;,&#x22;scopes&#x22;:[&#x22;PullRequestsWrite&#x22;,&#x22;ContentsRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_pull_request_review&#x22;,&#x22;label&#x22;:&#x22;Create Pull Request Review&#x22;,&#x22;scopes&#x22;:[&#x22;PullRequestsWrite&#x22;,&#x22;ContentsRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_pull_request_review_comment&#x22;,&#x22;label&#x22;:&#x22;Create Pull Request Review Comment&#x22;,&#x22;scopes&#x22;:[&#x22;PullRequestsWrite&#x22;,&#x22;ContentsRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_matching_refs&#x22;,&#x22;label&#x22;:&#x22;List Matching Git References&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_get_ref&#x22;,&#x22;label&#x22;:&#x22;Get Git Reference&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_ref&#x22;,&#x22;label&#x22;:&#x22;Create Git Reference&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_update_ref&#x22;,&#x22;label&#x22;:&#x22;Update Git Reference&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_delete_ref&#x22;,&#x22;label&#x22;:&#x22;Delete Git Reference&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_release&#x22;,&#x22;label&#x22;:&#x22;Create Release&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_releases&#x22;,&#x22;label&#x22;:&#x22;List Releases&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_get_latest_release&#x22;,&#x22;label&#x22;:&#x22;Get Latest Release&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_update_release&#x22;,&#x22;label&#x22;:&#x22;Update Release&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_upload_release_asset&#x22;,&#x22;label&#x22;:&#x22;Upload Release Asset&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_delete_release&#x22;,&#x22;label&#x22;:&#x22;Delete Release&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_authenticated_user_repositories&#x22;,&#x22;label&#x22;:&#x22;List Authenticated User Repositories&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;MetadataRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_user_repositories&#x22;,&#x22;label&#x22;:&#x22;List User Repositories&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;MetadataRead&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_organization_repositories&#x22;,&#x22;label&#x22;:&#x22;List Organization Repositories&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;MetadataRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_get_repository&#x22;,&#x22;label&#x22;:&#x22;Get Repository&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;MetadataRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_user_repository&#x22;,&#x22;label&#x22;:&#x22;Create User Repository&#x22;,&#x22;scopes&#x22;:[&#x22;AdministrationWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_organization_repository&#x22;,&#x22;label&#x22;:&#x22;Create Organization Repository&#x22;,&#x22;scopes&#x22;:[&#x22;AdministrationWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_update_repository&#x22;,&#x22;label&#x22;:&#x22;Update Repository&#x22;,&#x22;scopes&#x22;:[&#x22;AdministrationWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_delete_repository&#x22;,&#x22;label&#x22;:&#x22;Delete Repository&#x22;,&#x22;scopes&#x22;:[&#x22;AdministrationWrite&#x22;,&#x22;delete_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_fork_repository&#x22;,&#x22;label&#x22;:&#x22;Fork Repository&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_forks&#x22;,&#x22;label&#x22;:&#x22;List Forks&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;MetadataRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_branches&#x22;,&#x22;label&#x22;:&#x22;List Branches&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;MetadataRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_get_branch&#x22;,&#x22;label&#x22;:&#x22;Get Branch&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;MetadataRead&#x22;,&#x22;repo&#x22;,&#x22;public_repo&#x22;]},{&#x22;id&#x22;:&#x22;github_star_repository&#x22;,&#x22;label&#x22;:&#x22;Star Repository&#x22;,&#x22;scopes&#x22;:[&#x22;StarringWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_unstar_repository&#x22;,&#x22;label&#x22;:&#x22;Unstar Repository&#x22;,&#x22;scopes&#x22;:[&#x22;StarringWrite&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_search_code&#x22;,&#x22;label&#x22;:&#x22;Search Code&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;MetadataRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_search_repositories&#x22;,&#x22;label&#x22;:&#x22;Search Repositories&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;MetadataRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_search_issues&#x22;,&#x22;label&#x22;:&#x22;Search Issues&#x22;,&#x22;scopes&#x22;:[&#x22;ContentsRead&#x22;,&#x22;MetadataRead&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_code_scanning_alerts&#x22;,&#x22;label&#x22;:&#x22;List Code Scanning Alerts&#x22;,&#x22;scopes&#x22;:[&#x22;SecurityEventsRead&#x22;,&#x22;security_events&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_secret_scanning_alerts&#x22;,&#x22;label&#x22;:&#x22;List Secret Scanning Alerts&#x22;,&#x22;scopes&#x22;:[&#x22;SecurityEventsRead&#x22;,&#x22;security_events&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_list_dependabot_alerts&#x22;,&#x22;label&#x22;:&#x22;List Dependabot Alerts&#x22;,&#x22;scopes&#x22;:[&#x22;SecurityEventsRead&#x22;,&#x22;security_events&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_update_code_scanning_alert&#x22;,&#x22;label&#x22;:&#x22;Update Code Scanning Alert&#x22;,&#x22;scopes&#x22;:[&#x22;CodeScanningAlertsWrite&#x22;,&#x22;security_events&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_update_secret_scanning_alert&#x22;,&#x22;label&#x22;:&#x22;Update Secret Scanning Alert&#x22;,&#x22;scopes&#x22;:[&#x22;SecretScanningAlertsWrite&#x22;,&#x22;security_events&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_update_dependabot_alert&#x22;,&#x22;label&#x22;:&#x22;Update Dependabot Alert&#x22;,&#x22;scopes&#x22;:[&#x22;DependabotAlertsWrite&#x22;,&#x22;security_events&#x22;,&#x22;repo&#x22;]},{&#x22;id&#x22;:&#x22;github_create_team&#x22;,&#x22;label&#x22;:&#x22;Create Team&#x22;,&#x22;scopes&#x22;:[&#x22;MembersWrite&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_list_teams&#x22;,&#x22;label&#x22;:&#x22;List Teams&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_get_team&#x22;,&#x22;label&#x22;:&#x22;Get Team&#x22;,&#x22;scopes&#x22;:[&#x22;MembersRead&#x22;,&#x22;read:org&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_update_team&#x22;,&#x22;label&#x22;:&#x22;Update Team&#x22;,&#x22;scopes&#x22;:[&#x22;MembersWrite&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_delete_team&#x22;,&#x22;label&#x22;:&#x22;Delete Team&#x22;,&#x22;scopes&#x22;:[&#x22;MembersWrite&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_add_team_member&#x22;,&#x22;label&#x22;:&#x22;Add Team Member&#x22;,&#x22;scopes&#x22;:[&#x22;MembersWrite&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_remove_team_member&#x22;,&#x22;label&#x22;:&#x22;Remove Team Member&#x22;,&#x22;scopes&#x22;:[&#x22;MembersWrite&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_add_team_repository&#x22;,&#x22;label&#x22;:&#x22;Add Team Repository&#x22;,&#x22;scopes&#x22;:[&#x22;MembersWrite&#x22;,&#x22;admin:org&#x22;]},{&#x22;id&#x22;:&#x22;github_list_users&#x22;,&#x22;label&#x22;:&#x22;List Users&#x22;,&#x22;scopes&#x22;:[&#x22;MetadataRead&#x22;,&#x22;read:user&#x22;]},{&#x22;id&#x22;:&#x22;github_get_user&#x22;,&#x22;label&#x22;:&#x22;Get User&#x22;,&#x22;scopes&#x22;:[&#x22;MetadataRead&#x22;,&#x22;read:user&#x22;]},{&#x22;id&#x22;:&#x22;github_get_authenticated_user&#x22;,&#x22;label&#x22;:&#x22;Get Authenticated User&#x22;,&#x22;scopes&#x22;:[&#x22;ProfileRead&#x22;,&#x22;EmailAddressesRead&#x22;,&#x22;read:user&#x22;,&#x22;user&#x22;]},{&#x22;id&#x22;:&#x22;github_update_user&#x22;,&#x22;label&#x22;:&#x22;Update User&#x22;,&#x22;scopes&#x22;:[&#x22;ProfileWrite&#x22;,&#x22;user&#x22;]},{&#x22;id&#x22;:&#x22;github_list_collaborators&#x22;,&#x22;label&#x22;:&#x22;List Collaborators&#x22;,&#x22;scopes&#x22;:[&#x22;MetadataRead&#x22;,&#x22;read:user&#x22;,&#x22;user&#x22;]},{&#x22;id&#x22;:&#x22;github_add_collaborator&#x22;,&#x22;label&#x22;:&#x22;Add Collaborator&#x22;,&#x22;scopes&#x22;:[&#x22;ProfileWrite&#x22;,&#x22;user&#x22;]},{&#x22;id&#x22;:&#x22;github_remove_collaborator&#x22;,&#x22;label&#x22;:&#x22;Remove Collaborator&#x22;,&#x22;scopes&#x22;:[&#x22;ProfileWrite&#x22;,&#x22;user&#x22;]}]" style={{ borderRadius: '8px', padding: '16px', marginBottom: '24px' }}>
    <div className="guides-scope-selector__title" style={{ fontSize: '16px', fontWeight: '600', marginBottom: '12px' }}>Select Actions to adjust the guide</div>
    <div className="guides-scope-selector__muted" style={{ fontSize: '13px', marginBottom: '12px' }}>Some actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.</div>

    <div style={{ display: 'flex', gap: '8px', marginBottom: '12px', flexWrap: 'wrap' }}>
      <input type="text" placeholder="Search actions..." className="guides-scope-selector__input" data-guide-action-search style={{ padding: '8px 12px', borderRadius: '6px', fontSize: '13px', flex: 1, minWidth: '160px' }} />

      <button type="button" className="guides-scope-selector__quick-btn" data-guide-select-all style={{ padding: '6px 10px', borderRadius: '6px', fontSize: '12px', cursor: 'pointer' }}>Select all</button>
      <button type="button" className="guides-scope-selector__quick-btn" data-guide-clear style={{ padding: '6px 10px', borderRadius: '6px', fontSize: '12px', cursor: 'pointer' }}>Clear</button>
    </div>

    <div className="guides-scope-selector__list" style={{ maxHeight: '240px', overflowY: 'auto', borderRadius: '6px', marginBottom: '12px' }}>
      <div className="guides-scope-selector__list-header" style={{ display: 'flex', alignItems: 'center', gap: '10px', padding: '8px 12px', fontSize: '12px', fontWeight: '600', position: 'sticky', top: 0, zIndex: 1 }}>
        <div style={{ width: '16px', flexShrink: 0 }} />

        <div style={{ flex: 1, textAlign: 'left' }}>Action</div>
        <div style={{ minWidth: '120px', marginLeft: 'auto', textAlign: 'right' }}>Scope(s)</div>
      </div>

      <div className="guides-scope-selector__muted" data-guide-loading style={{ padding: '16px', textAlign: 'center', fontSize: '13px' }}>Loading actions...</div>
      <div className="guides-scope-selector__muted" data-guide-no-results hidden style={{ padding: '16px', textAlign: 'center', fontSize: '13px' }}>No actions match your search.</div>
    </div>

    <div className="guides-scope-selector__url-section" style={{ marginTop: '12px', paddingTop: '12px' }}>
      <div className="guides-scope-selector__muted" style={{ fontSize: '12px', fontWeight: '500', marginBottom: '6px' }}>Dynamic Guide URL</div>

      <div style={{ display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'wrap' }}>
        <input type="text" readOnly className="guides-scope-selector__input" data-guide-url style={{ flex: 1, minWidth: '200px', padding: '8px 10px', borderRadius: '6px', fontSize: '12px', fontFamily: 'monospace' }} />

        <button type="button" className="guides-scope-selector__copy-btn" data-guide-copy-url style={{ width: '120px', padding: '8px 14px', borderRadius: '6px', fontSize: '13px', fontWeight: '500', cursor: 'pointer', whiteSpace: 'nowrap', marginLeft: 'auto' }}>Copy URL</button>
      </div>

      <div style={{ marginTop: '12px' }}>
        <div className="guides-scope-selector__muted" style={{ fontSize: '12px', fontWeight: '500', marginBottom: '6px' }}>Scopes Selected</div>

        <div style={{ display: 'flex', alignItems: 'stretch', gap: '8px', flexWrap: 'wrap' }}>
          <pre className="guides-scope-selector__input" role="textbox" aria-readonly="true" tabIndex={0} data-guide-scopes-output style={{ flex: 1, minWidth: '200px', minHeight: '88px', maxHeight: '120px', overflowY: 'auto', margin: 0, padding: '8px 10px', borderRadius: '6px', fontSize: '12px', fontFamily: 'monospace', whiteSpace: 'pre-wrap' }} />

          <div className="guides-scope-selector__muted" style={{ display: 'flex', flexDirection: 'column', gap: '8px', fontSize: '12px', fontWeight: '500', flexShrink: 0, alignItems: 'flex-start' }}>
            <div style={{ whiteSpace: 'nowrap' }}>Separator</div>

            <select className="guides-scope-selector__input" data-guide-scope-delimiter style={{ width: '100%', padding: '6px 10px', borderRadius: '6px', fontSize: '12px' }}>
              <option value="space">Space</option>
              <option value="comma">Comma</option>
              <option value="semicolon">Semicolon</option>
              <option value="pipe">Pipe</option>
              <option value="newline">Newline</option>
            </select>

            <button type="button" className="guides-scope-selector__copy-btn" data-guide-copy-scopes style={{ width: '120px', padding: '8px 14px', borderRadius: '6px', fontSize: '13px', fontWeight: '500', cursor: 'pointer', whiteSpace: 'nowrap' }}>Copy scopes</button>
          </div>
        </div>
      </div>
    </div>
  </div>
</Panel>

<section data-guide-section data-guide-scopes="">
  <h2>Generating a Personal Access Token</h2>

  <p>Create a Personal Access Token to enable API access with your GitHub account.</p>

  <Steps>
    <Step title="Access Developer Settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://github.com/login" target="_blank" rel="noopener noreferrer">GitHub account</a> and navigate to developer settings.</p>

        <ul>
          <li>Click your profile photo in the upper-right corner</li>
          <li>Select <strong>Settings</strong> from the dropdown</li>
          <li>In the left sidebar, scroll down and click <strong>Developer settings</strong></li>
        </ul>
      </div>
    </Step>

    <Step title="Navigate to Personal Access Tokens">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Access the Personal Access Tokens settings.</p>

        <ul>
          <li>In the left sidebar, click <strong>Personal access tokens</strong></li>
          <li>Select <strong>Tokens (classic)</strong> from the dropdown</li>
        </ul>
      </div>
    </Step>

    <Step title="Generate New Token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Create a new classic personal access token.</p>

        <ul>
          <li>Click the <strong>Generate new token</strong> dropdown</li>
          <li>Select <strong>Generate new token (classic)</strong></li>
          <li>Enter a descriptive <strong>Note</strong> for the token (e.g., StackOne Integration)</li>
        </ul>
      </div>
    </Step>

    <Step title="Set Token Expiration">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Configure the token expiration period.</p>

        <ul>
          <li>Select <strong>No expiration</strong> from the <strong>Expiration</strong> dropdown for long-term use</li>
          <li>Note: For security, consider using a shorter expiration period and rotating tokens regularly</li>
        </ul>
      </div>
    </Step>

    <Step title="Select Required Scopes">
      <div data-guide-step data-guide-scopes="repo,public_repo,repo_deployment,security_events,admin:org,read:org,admin:repo_hook,write:repo_hook,read:repo_hook,user,read:user,delete_repo,workflow" data-guide-display-scopes-list="repo,public_repo,repo_deployment,security_events,admin:org,read:org,admin:repo_hook,write:repo_hook,read:repo_hook,user,read:user,delete_repo,workflow">
        <div className="connector-guide-actions-badge" data-guide-actions-badge data-guide-actions-badge-scopes="repo,public_repo,repo_deployment,security_events,admin:org,read:org,admin:repo_hook,write:repo_hook,read:repo_hook,user,read:user,delete_repo,workflow" style={{ display: 'block', width: 'fit-content', maxWidth: '100%', padding: '2px 8px', borderRadius: '8px', fontSize: '12px', marginBottom: '8px', marginTop: '-10px', whiteSpace: 'nowrap', overflowX: 'auto', overflowY: 'hidden', msOverflowStyle: 'none', scrollbarWidth: 'none' }}>
          <span>Enables actions: </span><span data-guide-actions-badge-labels>Add Collaborator, Add Team Member, Add Team Repository, Cancel Workflow Run, Check Organization Membership, Create Deployment, Create Deployment Status, Create Git Reference, Create Issue, Create Issue Comment, Create Or Update File, Create Organization Repository, Create Pull Request, Create Pull Request Review, Create Pull Request Review Comment, Create Release, Create Team, Create User Repository, Delete Deployment, Delete File, Delete Git Reference, Delete Release, Delete Repository, Delete Team, Download Artifact, Fork Repository, Get Authenticated User, Get Branch, Get Commit, Get Git Reference, Get Issue, Get Latest Release, Get Organization, Get Organization Membership, Get Pull Request, Get Repository, Get Repository Content, Get Team, Get Unified Group, Get Unified Organization, Get Unified User, Get User, Get Workflow Run, Invite Organization Member, List Artifacts, List Authenticated User Organization Memberships, List Authenticated User Organizations, List Authenticated User Repositories, List Branches, List Code Scanning Alerts, List Collaborators, List Commits, List Dependabot Alerts, List Deployments, List Forks, List Issue Comments, List Issues, List Matching Git References, List Organization Members, List Organization Repositories, List Pull Requests, List Releases, List Secret Scanning Alerts, List Teams, List Unified Groups, List Unified Organizations, List Unified Users, List User Organizations, List User Repositories, List Users, List Workflow Jobs, List Workflow Runs, Merge Pull Request, Re-run Workflow, Remove Collaborator, Remove Organization Member, Remove Team Member, Search Code, Search Issues, Search Repositories, Star Repository, Trigger Workflow, Unstar Repository, Update Code Scanning Alert, Update Dependabot Alert, Update Git Reference, Update Issue, Update Organization, Update Pull Request, Update Release, Update Repository, Update Secret Scanning Alert, Update Team, Update User, Upload Release Asset</span>
        </div>

        <p>Choose the appropriate Classic OAuth scopes for your integration needs. The scopes below match the exact structure and grouping from GitHub's token creation page.</p>

        <div style={{ marginTop: '8px' }} data-guide-display-scopes>
          <div className="connector-guide-scopes-container connector-guide-scopes-container--scrollable">
            <ul className="not-prose" style={{ listStyleType: "'- '", paddingLeft: '1em', margin: 0 }}>
              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="repo">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy repo" title="Copy scope" data-copy="repo">
                  <span className="connector-guide-scope-copy__label">repo</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="public_repo">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy public_repo" title="Copy scope" data-copy="public_repo">
                  <span className="connector-guide-scope-copy__label">public\_repo</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="repo_deployment">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy repo_deployment" title="Copy scope" data-copy="repo_deployment">
                  <span className="connector-guide-scope-copy__label">repo\_deployment</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="security_events">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy security_events" title="Copy scope" data-copy="security_events">
                  <span className="connector-guide-scope-copy__label">security\_events</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="admin:org">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy admin:org" title="Copy scope" data-copy="admin:org">
                  <span className="connector-guide-scope-copy__label">admin:org</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="read:org">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy read:org" title="Copy scope" data-copy="read:org">
                  <span className="connector-guide-scope-copy__label">read:org</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="admin:repo_hook">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy admin:repo_hook" title="Copy scope" data-copy="admin:repo_hook">
                  <span className="connector-guide-scope-copy__label">admin:repo\_hook</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="write:repo_hook">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy write:repo_hook" title="Copy scope" data-copy="write:repo_hook">
                  <span className="connector-guide-scope-copy__label">write:repo\_hook</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="read:repo_hook">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy read:repo_hook" title="Copy scope" data-copy="read:repo_hook">
                  <span className="connector-guide-scope-copy__label">read:repo\_hook</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="user">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy user" title="Copy scope" data-copy="user">
                  <span className="connector-guide-scope-copy__label">user</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="read:user">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy read:user" title="Copy scope" data-copy="read:user">
                  <span className="connector-guide-scope-copy__label">read:user</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="delete_repo">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy delete_repo" title="Copy scope" data-copy="delete_repo">
                  <span className="connector-guide-scope-copy__label">delete\_repo</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>

              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="workflow">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy workflow" title="Copy scope" data-copy="workflow">
                  <span className="connector-guide-scope-copy__label">workflow</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </Step>

    <Step title="Generate and Copy Token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Complete the token generation and store it securely.</p>

        <ul>
          <li>Scroll to the bottom and click <strong>Generate token</strong></li>
          <li>Copy the displayed token immediately and store it securely</li>
          <li>Warning: The token is shown only once and cannot be retrieved later</li>
          <li>Format: `ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>Personal Access Token</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></li>
        <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
        <li>Once authorization is successful, you will see a confirmation popup</li>
      </ul>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
