Skip to content

Commit

Permalink
feat: support gh refresh tokens
Browse files Browse the repository at this point in the history
Depends on codecov/shared#27
TODO: after that is merged update the sha reference in requirements.in

Adds support for github app refresh tokens

codecov/engineering-team#162
  • Loading branch information
giovanni-guidini committed Aug 17, 2023
1 parent 5df32f9 commit 069f06d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
git+ssh://[email protected]/codecov/shared.git@6a8a33248804a9c101d34f417efda7c11e4bbe63#egg=shared
git+ssh://[email protected]/codecov/shared.git@680951c4849074db131353b251581ee03029a72a#egg=shared
git+ssh://[email protected]/codecov/[email protected]#egg=codecovopentelem
boto3
celery
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ s3transfer==0.3.4
# via boto3
sentry-sdk==1.19.1
# via -r requirements.in
shared @ git+ssh://[email protected]/codecov/shared.git@6a8a33248804a9c101d34f417efda7c11e4bbe63
shared @ git+ssh://[email protected]/codecov/shared.git@680951c4849074db131353b251581ee03029a72a
# via -r requirements.in
six==1.15.0
# via
Expand Down
2 changes: 1 addition & 1 deletion services/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_token_refresh_callback(owner: Owner) -> Callable[[Dict], None]:
return None

service = owner.service
if service != "gitlab" and service != "gitlab_enterprise":
if service == "bitbucket" or service == "bitbucket_server":
return None

async def callback(new_token: Dict) -> None:
Expand Down

0 comments on commit 069f06d

Please sign in to comment.