.github/workflows/sync-compliance.yml → supabase/sdk/.github/workflows/sync-sdk-compliance.ymlsupabase-py
supabase-py
| Primary Language | Python |
|---|---|
| Primary Framework | Unknown |
| Deployable Types | Database |
| Technology Stack | Python, CI/CD |
| Default Branch | main |
| Documentation Priority | P2 |
| Last Repository Scan | 11/15/2026, 5:06:30 AM |
| Source Repository | Open on GitHub |
supabase/supabase-py — Pipeline Categories Overview
Pipeline Anti-Patterns Detected
Cross-Workflow Triggers & Reusable Calls
.github/workflows/validate-capabilities.yml → supabase/sdk/.github/workflows/validate-sdk-compliance-python.ymlsupabase/supabase-py — Module Architecture Tree
Arc42 Architecture & Dependency Report
Repository Architecture Analysis: supabase/supabase-py
Metadata
- SHA:
fd9ff93616616ee5b87aee2893c58c15fc773076 - Primary Ecosystem: Python
Quality Metrics
- ast_engine: tree-sitter
- avg_cognitive_complexity: 0.48
- avg_cyclomatic_complexity: 1.42
- component_count: 106
- dead_code_count: 8
- dead_code_symbols: 8 entry(ies)
- duplication_pct: 86.93
- file_complexities: 25 entry(ies)
- files_analyzed: 208
- fitness_passed: False
- fitness_violation_count: 1
- framework: Unknown
- import_edges: 100 entry(ies)
- loc: 42569
- max_cognitive_complexity: 19
- max_cyclomatic_complexity: 18
- sloc: 34458
- test_file_count: 138
Architecture: supabase/supabase-py
Context
- Repository:
supabase/supabase-py - SHA:
fd9ff93616616ee5b87aee2893c58c15fc773076 - Ecosystem: Python
- Framework: Unknown
Building Block View
graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
repo_root(["supabase/supabase-py (106 components)"]):::atlasRoot
dir_0_src_auth["src/auth (44)"]:::atlasCategory
repo_root --> dir_0_src_auth
dir_1_src_storage["src/storage (35)"]:::atlasCategory
repo_root --> dir_1_src_storage
subgraph sg_dir_2_src_realtime["src/realtime (25)"]
direction TB
dir_2_src_realtime["src/realtime (25)"]:::atlasCategory
sub_2_0_src["src (22)"]:::atlasWorkflow
dir_2_src_realtime --> sub_2_0_src
sub_2_1_tests["tests (3)"]:::atlasWorkflow
dir_2_src_realtime --> sub_2_1_tests
end
repo_root --> dir_2_src_realtime
dir_3_src_postgrest["src/postgrest (1)"]:::atlasCategory
repo_root --> dir_3_src_postgrest
dir_4_src_utils["src/utils (1)"]:::atlasCategory
repo_root --> dir_4_src_utils
sub_2_1_tests -.->|"15 deps"| sub_2_0_src
Component Details
Showing top 60 representative components out of 106 across 5 module group(s):
-
Module
src/auth(44 components — DATA_ACCESS_LAYER: 44) -
Module
src/storage(35 components — DATA_ACCESS_LAYER: 35) -
Module
src/realtime(25 components — DATA_ACCESS_LAYER: 25) -
Module
src/postgrest(1 components — DATA_ACCESS_LAYER: 1) -
Module
src/utils(1 components — DATA_ACCESS_LAYER: 1) -
CreateMsgResponse (
src/realtime/tests/test_connection.py): DATA_ACCESS_LAYER (deps: BroadcastMessage, ChannelCloseMessage, Message, PostgresChangesMessage, SystemMessage) -
CreateTodoResponse (
src/realtime/tests/test_connection.py): DATA_ACCESS_LAYER (deps: BroadcastMessage, ChannelCloseMessage, Message, PostgresChangesMessage, SystemMessage) -
SignupMessageResponse (
src/realtime/tests/test_connection.py): DATA_ACCESS_LAYER (deps: BroadcastMessage, ChannelCloseMessage, Message, PostgresChangesMessage, SystemMessage) -
AMREntry (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
APIErrorFromJSON (
src/postgrest/src/postgrest/exceptions.py): DATA_ACCESS_LAYER -
AccessTokenMessage (
src/realtime/src/realtime/message.py): DATA_ACCESS_LAYER -
AccessTokenPayload (
src/realtime/src/realtime/message.py): DATA_ACCESS_LAYER -
AnalyticsBucket (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
AnalyticsBucketDeleteResponse (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
AuthMFAAdminDeleteFactorResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
AuthMFAChallengeResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
AuthMFAEnrollResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
AuthMFAEnrollResponseTotp (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
AuthMFAGetAuthenticatorAssuranceLevelResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
AuthMFAListFactorsResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
AuthMFAUnenrollResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
AuthMFAVerifyResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
AuthOtpResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
AuthResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
BroadcastMessage (
src/realtime/src/realtime/message.py): DATA_ACCESS_LAYER -
Bucket (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
BucketName (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
CaptchaToken (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
ChannelCloseMessage (
src/realtime/src/realtime/message.py): DATA_ACCESS_LAYER -
ChannelErrorMessage (
src/realtime/src/realtime/message.py): DATA_ACCESS_LAYER -
ChannelLeaveMessage (
src/realtime/src/realtime/message.py): DATA_ACCESS_LAYER -
CreateOAuthClientParams (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
CreateOrUpdateBucketBody (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
CreateSignedUrlBody (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
CreateSignedUrlsBody (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
ErrorReplyMessage (
src/realtime/src/realtime/message.py): DATA_ACCESS_LAYER -
ErrorSystemPayload (
src/realtime/src/realtime/message.py): DATA_ACCESS_LAYER -
Factor (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
FileObject (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
GenerateLinkBody (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
GenerateLinkParams (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
GenerateLinkProperties (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
GenerateLinkResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
GetVectorBucketResponse (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
GetVectorIndexResponse (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
GetVectorsResponse (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
HeartbeatMessage (
src/realtime/src/realtime/message.py): DATA_ACCESS_LAYER -
HeartbeatPayload (
src/realtime/src/realtime/message.py): DATA_ACCESS_LAYER -
IdentitiesResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
Item (
src/utils/tests/test_request.py): DATA_ACCESS_LAYER -
JWK (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
JWKSet (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
JWTHeader (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
JWTPayload (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
JoinMessage (
src/realtime/src/realtime/message.py): DATA_ACCESS_LAYER -
LinkIdentityResponse (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
ListBody (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
ListFileObject (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
ListIndexesResponseItem (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
ListVectorBucketsItem (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
ListVectorBucketsResponse (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
ListVectorIndexesResponse (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
ListVectorsResponse (
src/storage/src/storage3/types.py): DATA_ACCESS_LAYER -
MFAEnrollPhoneParams (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER -
MFAEnrollTOTPParams (
src/auth/src/supabase_auth/types.py): DATA_ACCESS_LAYER
6-Dimension Repository Scorecard
- Overall Grade:
D(62.10/100) - Technical Debt Score: 37.90
- Estimated Remediation Effort: 57.86h
| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 54.50 | 0.20 | avg_cc=1.42, max_cc=18, duplication=86.93%, dead_code=8 |
| Dependency Health | A | 100.00 | 0.15 | dependencies=193, outdated=0, vulnerable=0, has_lockfile=True |
| Maintainability | C | 74.00 | 0.15 | avg_cognitive=0.48, max_cognitive=19, fitness_violations=1, oversized_files=8 |
| Pipeline Health | D | 60.00 | 0.15 | workflows=7, operational_antipatterns=14, parallel_branches=True |
| Security | F | 28.00 | 0.20 | vulnerabilities=0, secrets=4, pipeline_security_findings=0 |
| Test Coverage | C | 70.00 | 0.15 | coverage=unavailable, ci_test_job=True, test_files_detected=True |
Architecture Fitness & Workspace Boundaries
- [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository duplication_pct (86.93) exceeds policy threshold (15.0).
Workspace Packages
- supabase_auth (
src/auth, python, uv) -> internal deps:supabase_utils - supabase_functions (
src/functions, python, uv) -> internal deps:supabase_utils - postgrest (
src/postgrest, python, uv) -> internal deps:supabase_utils - realtime (
src/realtime, python, uv) -> internal deps:supabase_utils - storage3 (
src/storage, python, uv) -> internal deps:supabase_utils - supabase (
src/supabase, python, uv) -> internal deps:postgrest, realtime, storage3, supabase_auth, supabase_functions, supabase_utils - supabase_utils (
src/utils, python, uv)
Supply Chain Dependencies, Vulnerabilities & Secrets
- Dependencies Parsed: 193 | Vulnerabilities: 0 | Secrets: 4
Secret Findings (Redacted)
- [HIGH]
ATRUSS-SEC-005atsrc/functions/tests/_async/test_function_client.py:83(valid_token = "eyJh***REDACTED***") - [HIGH]
ATRUSS-SEC-005atsrc/functions/tests/_sync/test_function_client.py:83(valid_token = "eyJh***REDACTED***") - [HIGH]
ATRUSS-SEC-005atsrc/storage/tests/tests.env:2(SUPABASE_TEST_KEY="eyJh***REDACTED***") - [HIGH]
ATRUSS-SEC-005atsrc/supabase/tests/tests.env:1(SUPABASE_TEST_KEY="eyJh***REDACTED***")
Inventory Sample
Faker37.4.0(PyPI,src/auth/pyproject.toml)aiohttp3.14.4(PyPI,src/realtime/pyproject.toml)aiohttp3.14.4(PyPI,src/utils/pyproject.toml)httpx0.28(PyPI,src/utils/pyproject.toml)mypy2.4.1(PyPI,src/postgrest/pyproject.toml)postgrest3.0.0-a1(PyPI,src/supabase/pyproject.toml)pudb2025.1.5(PyPI,src/realtime/pyproject.toml)pydantic2(PyPI,src/auth/pyproject.toml)pydantic2(PyPI,src/postgrest/pyproject.toml)pydantic2.11.7(PyPI,src/realtime/pyproject.toml)pydantic2.11.7(PyPI,src/storage/pyproject.toml)pydantic2.12.2(PyPI,src/functions/pyproject.toml)pydantic2.12.2(PyPI,src/utils/pyproject.toml)pyiceberg0.11.0(PyPI,src/storage/pyproject.toml)pyjwt2.15.1(PyPI,src/auth/pyproject.toml)pyjwt2.15.1(PyPI,src/functions/pyproject.toml)pyotp2.9.0(PyPI,src/auth/pyproject.toml)pyrefly1.4.0(PyPI,src/auth/pyproject.toml)pyrefly1.4.0(PyPI,src/functions/pyproject.toml)pyrefly1.4.0(PyPI,src/postgrest/pyproject.toml)pyrefly1.4.0(PyPI,src/realtime/pyproject.toml)pyrefly1.4.0(PyPI,src/storage/pyproject.toml)pyrefly1.4.0(PyPI,src/supabase/pyproject.toml)pyrefly1.4.0(PyPI,src/utils/pyproject.toml)pyright1.1.414(PyPI,src/postgrest/pyproject.toml)pyrsistent0.20.0(PyPI,src/utils/pyproject.toml)pytest9.0.3(PyPI,src/auth/pyproject.toml)pytest9.0.3(PyPI,src/functions/pyproject.toml)pytest9.0.3(PyPI,src/postgrest/pyproject.toml)pytest9.0.3(PyPI,src/realtime/pyproject.toml)- … (+163 more dependencies)
Section 7: Code-to-Cloud Deployment Traceability
flowchart LR
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
subgraph ci_jobs["CI/CD Jobs"]
job_ci_yml_publish["ci.yml#publish"]:::atlasJob
end
subgraph runtime_envs["Runtime Environments"]
env_pypi["pypi"]:::atlasTarget
end
job_ci_yml_publish -->|DEPLOYS_TO| env_pypi
ci.yml#publish(ci_job) —[DEPLOYS_TO]—>pypi(environment)
CI/CD Pipeline Topology
graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
pipeline_root(["supabase/supabase-py (7 workflows)"]):::atlasRoot
subgraph sg_grp_0_CI___Verification["CI & Verification (3 workflows · 3 jobs)"]
direction TB
subgraph sg_wf_2_PR_Title_is_Conventional["PR Title is Conventional (1 jobs)"]
direction TB
wf_2_PR_Title_is_Conventional(["Trigger: PR Title is Conventional"]):::atlasWorkflow
job_2_main["main"]:::atlasJob
wf_2_PR_Title_is_Conventional --> job_2_main
end
pipeline_root --> wf_2_PR_Title_is_Conventional
subgraph sg_wf_3_Reject_External_PRs_to_main["Reject External PRs to main (1 jobs)"]
direction TB
wf_3_Reject_External_PRs_to_main(["Trigger: Reject External PRs to main"]):::atlasWorkflow
job_3_reject["reject"]:::atlasJob
wf_3_Reject_External_PRs_to_main --> job_3_reject
end
pipeline_root --> wf_3_Reject_External_PRs_to_main
subgraph sg_wf_6_Validate_SDK_Compliance["Validate SDK Compliance (1 jobs)"]
direction TB
wf_6_Validate_SDK_Compliance(["Trigger: Validate SDK Compliance"]):::atlasWorkflow
job_6_validate["validate"]:::atlasJob
wf_6_Validate_SDK_Compliance --> job_6_validate
end
pipeline_root --> wf_6_Validate_SDK_Compliance
end
subgraph sg_grp_1_Scheduled___Manual["Scheduled & Manual (3 workflows · 11 jobs)"]
direction TB
subgraph sg_wf_0_CI_CD["CI/CD (9 jobs)"]
direction TB
wf_0_CI_CD(["Trigger: CI/CD"]):::atlasWorkflow
job_0_changes["changes"]:::atlasJob
job_0_lint["lint"]:::atlasJob
job_0_import_without_httpx["import-without-httpx"]:::atlasJob
wf_0_CI_CD --> job_0_changes
wf_0_CI_CD --> job_0_lint
wf_0_CI_CD --> job_0_import_without_httpx
end
pipeline_root --> wf_0_CI_CD
subgraph sg_wf_1_Generated_code["Generated code (1 jobs)"]
direction TB
wf_1_Generated_code(["Trigger: Generated code"]):::atlasWorkflow
job_1_check_sync["check-sync"]:::atlasJob
wf_1_Generated_code --> job_1_check_sync
end
pipeline_root --> wf_1_Generated_code
subgraph sg_wf_5_Sync_SDK_Compliance_Matrix["Sync SDK Compliance Matrix (1 jobs)"]
direction TB
wf_5_Sync_SDK_Compliance_Matrix(["Trigger: Sync SDK Compliance Matrix"]):::atlasWorkflow
job_5_sync["sync"]:::atlasJob
wf_5_Sync_SDK_Compliance_Matrix --> job_5_sync
end
pipeline_root --> wf_5_Sync_SDK_Compliance_Matrix
end
subgraph sg_grp_2_Security___Governance["Security & Governance (1 workflows · 1 jobs)"]
direction TB
subgraph sg_wf_4_Stale_Issues___PRs["Stale Issues & PRs (1 jobs)"]
direction TB
wf_4_Stale_Issues___PRs(["Trigger: Stale Issues & PRs"]):::atlasWorkflow
job_4_mark_stale["mark_stale"]:::atlasJob
wf_4_Stale_Issues___PRs --> job_4_mark_stale
end
pipeline_root --> wf_4_Stale_Issues___PRs
end6-Dimension Scorecard Breakdown
Code Quality
Weight 20%avg_cc=1.42, max_cc=18, duplication=86.93%, dead_code=8
Security
Weight 20%vulnerabilities=0, secrets=4, pipeline_security_findings=0
Maintainability
Weight 15%avg_cognitive=0.48, max_cognitive=19, fitness_violations=1, oversized_files=8
Test Coverage
Weight 15%coverage=unavailable, ci_test_job=True, test_files_detected=True
Dependency Health
Weight 15%dependencies=193, outdated=0, vulnerable=0, has_lockfile=True
Pipeline Health
Weight 15%workflows=7, operational_antipatterns=14, parallel_branches=True
Module Complexity & Quality Heatmap
Unreferenced / Dead Code Symbols Preview (8)
_str_from_base64urlsrc/auth/src/supabase_auth/helpers.py:180_close_if_unusedsrc/realtime/src/realtime/client.py:236_get_message_or_raisesrc/realtime/src/realtime/client.py:303_remove_channelsrc/realtime/src/realtime/client.py:373_send_token_if_changedsrc/realtime/src/realtime/client.py:450_send_no_waitsrc/realtime/src/realtime/client.py:491_on_state_eventsrc/realtime/src/realtime/presence.py:62_on_diff_eventsrc/realtime/src/realtime/presence.py:68Architectural Fitness Rules
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDsrc/auth/src/supabase_auth/client.py:1Repository duplication_pct (86.93) exceeds policy threshold (15.0).
Supply-Chain Dependencies & OSV Vulnerabilities
No known OSV vulnerabilities detected across 193 parsed dependencies.
Redacted Secret Findings
ATRUSS-SEC-005src/functions/tests/_async/test_function_client.py:83High-entropy credential candidate (H=5.33 > 4.5) detected.
valid_token = "eyJh***REDACTED***"ATRUSS-SEC-005src/functions/tests/_sync/test_function_client.py:83High-entropy credential candidate (H=5.33 > 4.5) detected.
valid_token = "eyJh***REDACTED***"ATRUSS-SEC-005src/storage/tests/tests.env:2High-entropy credential candidate (H=5.46 > 4.5) detected.
SUPABASE_TEST_KEY="eyJh***REDACTED***"ATRUSS-SEC-005src/supabase/tests/tests.env:1High-entropy credential candidate (H=5.34 > 4.5) detected.
SUPABASE_TEST_KEY="eyJh***REDACTED***"Code-to-Cloud & Workspace Packages
Workspace Packages
src/authsrc/functionssrc/postgrestsrc/realtimesrc/storagesrc/supabasesrc/utils