Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 472128c

Browse files
committed
Add upload-coverage to regex for token collection
1 parent 6b66f3e commit 472128c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codecov_auth/authentication/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_upload_info_from_request_path(request: HttpRequest) -> UploadInfo | None
1414
path_info = request.get_full_path_info()
1515
# The repo part comes from https://stackoverflow.com/a/22312124
1616
upload_views_prefix_regex = (
17-
r"\/upload\/(\w+)\/([\w\.@:_/\-~]+)\/commits(?:\/([a-f0-9]{40}))?"
17+
r"\/upload\/(\w+)\/([\w\.@:_/\-~]+)\/(commits(?:\/([a-f0-9]{40}))?|upload-coverage)"
1818
)
1919
match = re.search(upload_views_prefix_regex, path_info)
2020

0 commit comments

Comments
 (0)