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

Commit 903ed78

Browse files
Merge remote-tracking branch 'origin/main' into sshin/fix/max-depth
2 parents 9442105 + 0273319 commit 903ed78

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

upload/views/empty_upload.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
GlobalTokenAuthentication,
1717
OrgLevelTokenAuthentication,
1818
RepositoryLegacyTokenAuthentication,
19+
UploadTokenRequiredAuthenticationCheck,
1920
repo_auth_custom_exception_handler,
2021
)
2122
from codecov_auth.authentication.types import RepositoryAsUser
@@ -73,6 +74,7 @@ class EmptyUploadSerializer(serializers.Serializer):
7374
class EmptyUploadView(CreateAPIView, GetterMixin):
7475
permission_classes = [CanDoCoverageUploadsPermission]
7576
authentication_classes = [
77+
UploadTokenRequiredAuthenticationCheck,
7678
GlobalTokenAuthentication,
7779
OrgLevelTokenAuthentication,
7880
GitHubOIDCTokenAuthentication,

upload/views/test_results.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
OrgLevelTokenAuthentication,
1515
RepositoryLegacyTokenAuthentication,
1616
TokenlessAuthentication,
17-
UploadTokenRequiredAuthenticationCheck,
1817
repo_auth_custom_exception_handler,
1918
)
2019
from codecov_auth.authentication.types import RepositoryAsUser
@@ -59,7 +58,6 @@ class TestResultsView(
5958
):
6059
permission_classes = [UploadTestResultsPermission]
6160
authentication_classes = [
62-
UploadTokenRequiredAuthenticationCheck,
6361
OrgLevelTokenAuthentication,
6462
GitHubOIDCTokenAuthentication,
6563
RepositoryLegacyTokenAuthentication,

upload/views/upload_completion.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
GlobalTokenAuthentication,
1111
OrgLevelTokenAuthentication,
1212
RepositoryLegacyTokenAuthentication,
13+
UploadTokenRequiredAuthenticationCheck,
1314
repo_auth_custom_exception_handler,
1415
)
1516
from reports.models import ReportSession
@@ -25,6 +26,7 @@
2526
class UploadCompletionView(CreateAPIView, GetterMixin):
2627
permission_classes = [CanDoCoverageUploadsPermission]
2728
authentication_classes = [
29+
UploadTokenRequiredAuthenticationCheck,
2830
GlobalTokenAuthentication,
2931
OrgLevelTokenAuthentication,
3032
GitHubOIDCTokenAuthentication,

0 commit comments

Comments
 (0)