Skip to content

Commit

Permalink
Add upload-coverage to regex for token collection
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-codecov committed Nov 26, 2024
1 parent 6b66f3e commit 472128c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codecov_auth/authentication/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_upload_info_from_request_path(request: HttpRequest) -> UploadInfo | None
path_info = request.get_full_path_info()
# The repo part comes from https://stackoverflow.com/a/22312124
upload_views_prefix_regex = (
r"\/upload\/(\w+)\/([\w\.@:_/\-~]+)\/commits(?:\/([a-f0-9]{40}))?"
r"\/upload\/(\w+)\/([\w\.@:_/\-~]+)\/(commits(?:\/([a-f0-9]{40}))?|upload-coverage)"
)
match = re.search(upload_views_prefix_regex, path_info)

Expand Down

0 comments on commit 472128c

Please sign in to comment.