Skip to content

Commit 4f43360

Browse files
authored
feat(source-github): add declarative OAuth spec (#75508)
1 parent ff24b2e commit 4f43360

4 files changed

Lines changed: 17 additions & 2 deletions

File tree

airbyte-integrations/connectors/source-github/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: ef69ef6e-aa7f-4af1-a01d-ef775033524e
13-
dockerImageTag: 2.1.14
13+
dockerImageTag: 2.1.15
1414
dockerRepository: airbyte/source-github
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/github
1616
erdUrl: https://dbdocs.io/airbyteio/source-github?view=relationships

airbyte-integrations/connectors/source-github/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "2.1.14"
6+
version = "2.1.15"
77
name = "source-github"
88
description = "Source implementation for GitHub."
99
authors = [ "Airbyte <contact@airbyte.io>",]

airbyte-integrations/connectors/source-github/source_github/spec.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,20 @@
149149
"predicate_key": ["credentials", "option_title"],
150150
"predicate_value": "OAuth Credentials",
151151
"oauth_config_specification": {
152+
"oauth_connector_input_specification": {
153+
"scopes": [
154+
{ "scope": "repo" },
155+
{ "scope": "read:org" },
156+
{ "scope": "read:repo_hook" },
157+
{ "scope": "read:user" },
158+
{ "scope": "read:project" },
159+
{ "scope": "read:discussion" },
160+
{ "scope": "workflow" }
161+
],
162+
"consent_url": "https://github.com/login/oauth/authorize?{{client_id_param}}&{{redirect_uri_param}}&{{scopes_param}}&{{state_param}}",
163+
"access_token_url": "https://github.com/login/oauth/access_token?{{client_id_param}}&{{client_secret_param}}&{{auth_code_param}}&{{redirect_uri_param}}",
164+
"extract_output": ["access_token"]
165+
},
152166
"complete_oauth_output_specification": {
153167
"type": "object",
154168
"additionalProperties": false,

docs/integrations/sources/github.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ Your token should have at least the `repo` scope. Depending on which streams you
229229

230230
| Version | Date | Pull Request | Subject |
231231
|:-----------|:-----------|:------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
232+
| 2.1.15 | 2026-03-27 | [75508](https://github.com/airbytehq/airbyte/pull/75508) | Add declarative OAuth with `oauth_connector_input_specification` and granular scopes |
232233
| 2.1.14 | 2026-03-09 | [74284](https://github.com/airbytehq/airbyte/pull/74284) | Fix heartbeat timeout for pull_request_stats by using descending sort on incremental syncs |
233234
| 2.1.13 | 2026-03-03 | [73698](https://github.com/airbytehq/airbyte/pull/73698) | feat(source-github): use GraphQL API for Releases stream to bypass 10k REST limit |
234235
| 2.1.12 | 2026-03-03 | [74204](https://github.com/airbytehq/airbyte/pull/74204) | Update dependencies |

0 commit comments

Comments
 (0)