YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(github): request organization access during OAuth (#6852)
Ezra Ellette22096bef2cc3
diff --git a/crates/screenpipe-connect/src/connections/github_issues.rs b/crates/screenpipe-connect/src/connections/github_issues.rsindex 3e1e2a685..fd9ecb594 100644--- a/crates/screenpipe-connect/src/connections/github_issues.rs+++ b/crates/screenpipe-connect/src/connections/github_issues.rs@@ -14,7 +14,9 @@ const GITHUB_CLIENT_ID: &str = "Ov23li9IT9uV0S9ql2ne";static OAUTH: OAuthConfig = OAuthConfig {auth_url: "https://github.com/login/oauth/authorize",client_id: GITHUB_CLIENT_ID,- extra_auth_params: &[("scope", "repo")],+ // `repo` grants repository access, while `read:org` makes private+ // organization memberships visible so `/user/repos` can include them.+ extra_auth_params: &[("scope", "repo read:org")],redirect_uri_override: None,};@@ -94,3 +96,13 @@ impl Integration for GithubIssues {Ok(format!("connected as {}", login))}}++#[cfg(test)]+mod tests {+ use super::OAUTH;++ #[test]+ fn oauth_requests_organization_membership_visibility() {+ assert_eq!(OAUTH.extra_auth_params, &[("scope", "repo read:org")]);+ }+}