.github/workflows/build-pr.yaml → .github/workflows/build.yamloperating-system
operating-system
| Primary Language | Python |
|---|---|
| Primary Framework | Unknown |
| Detected Frameworks | Container |
| Technology Stack | Python, Docker, CI/CD |
| Default Branch | dev |
| Documentation Priority | P2 |
| Last Repository Scan | 11/15/2026, 4:58:06 AM |
| Source Repository | Open on GitHub |
home-assistant/operating-system — Pipeline Categories Overview
Pipeline Anti-Patterns Detected
Cross-Workflow Triggers & Reusable Calls
.github/workflows/build.yaml → .github/workflows/test.yaml.github/workflows/build.yaml → home-assistant/operating-system/.github/workflows/artifacts-index.yamlArc42 Architecture & Dependency Report
Repository Architecture Analysis: home-assistant/operating-system
Metadata
- SHA:
945ba38d88e7e7d7321d42294b222b8deb2208d2 - Primary Ecosystem: Python
Quality Metrics
- ast_engine: tree-sitter
- avg_cognitive_complexity: 6.44
- avg_cyclomatic_complexity: 4.53
- component_count: 0
- dead_code_count: 1
- dead_code_symbols: 1 entry(ies)
- duplication_pct: 55.07
- file_complexities: 8 entry(ies)
- files_analyzed: 8
- fitness_passed: False
- fitness_violation_count: 3
- framework: Unknown
- import_edges: 65 entry(ies)
- loc: 8090
- max_cognitive_complexity: 89
- max_cyclomatic_complexity: 45
- sloc: 5113
- test_file_count: 12
6-Dimension Repository Scorecard
- Overall Grade:
F(38.78/100) - Technical Debt Score: 61.22
- Estimated Remediation Effort: 62.57h
| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 41.88 | 0.20 | avg_cc=4.53, max_cc=45, duplication=55.07%, dead_code=1 |
| Dependency Health | B | 85.00 | 0.15 | dependencies=3, outdated=0, vulnerable=0, has_lockfile=False |
| Maintainability | F | 47.68 | 0.15 | avg_cognitive=6.44, max_cognitive=89, fitness_violations=3, oversized_files=1 |
| Pipeline Health | F | 0.00 | 0.15 | workflows=9, operational_antipatterns=19, parallel_branches=True |
| Security | F | 0.00 | 0.20 | vulnerabilities=0, secrets=1, pipeline_security_findings=9 |
| 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 (55.07) exceeds policy threshold (15.0). - [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository max_cognitive_complexity (89.0) exceeds policy threshold (25.0). - [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository max_cyclomatic_complexity (45.0) exceeds policy threshold (20.0).
Supply Chain Dependencies, Vulnerabilities & Secrets
- Dependencies Parsed: 3 | Vulnerabilities: 0 | Secrets: 1
Secret Findings (Redacted)
- [CRITICAL]
ATRUSS-SEC-004at.github/workflows/build.yaml:326(-----BEGIN ... PRIVATE KEY----- [REDACTED])
Inventory Sample
labgrid26.0.1(PyPI,tests/requirements.txt)pytest-dependency0.6.1(PyPI,tests/requirements.txt)pytest-timeout2.4.0(PyPI,tests/requirements.txt)
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 code_modules["Code Modules"]
mod_d4391456_6227_409f_8b8e_ba95e5bf13c2["d4391456-6227-409f-8b8e-ba95e5bf13c2"]:::atlasCategory
mod_tests["tests"]:::atlasCategory
end
subgraph build_artifacts["Build Artifacts / Containers"]
art_Dockerfile["Dockerfile"]:::atlasWorkflow
end
subgraph ci_jobs["CI/CD Jobs"]
job_artifacts_index_yaml_build_index["artifacts-index.yaml#build-index"]:::atlasJob
job_build_yaml_build["build.yaml#build"]:::atlasJob
job_build_yaml_bump_version["build.yaml#bump_version"]:::atlasJob
job_build_yaml_prepare["build.yaml#prepare"]:::atlasJob
job_build_yaml_sign["build.yaml#sign"]:::atlasJob
job_pr_checks_yml_linters["pr-checks.yml#linters"]:::atlasJob
job_test_yaml_test["test.yaml#test"]:::atlasJob
end
subgraph runtime_envs["Runtime Environments"]
env_____needs_prepare_outputs_channel___["${{ needs.prepare.outputs.channel }}"]:::atlasTarget
env_aws["aws"]:::atlasTarget
end
job_artifacts_index_yaml_build_index -->|DEPLOYS_TO| env_aws
job_build_yaml_build -->|DEPLOYS_TO| env_aws
job_build_yaml_bump_version -->|DEPLOYS_TO| env_____needs_prepare_outputs_channel___
job_build_yaml_sign -->|DEPLOYS_TO| env_aws
mod_d4391456_6227_409f_8b8e_ba95e5bf13c2 -->|BUILT_BY| job_build_yaml_prepare
mod_d4391456_6227_409f_8b8e_ba95e5bf13c2 -->|BUILT_BY| job_pr_checks_yml_linters
mod_d4391456_6227_409f_8b8e_ba95e5bf13c2 -->|PACKAGED_BY| art_Dockerfile
mod_tests -->|BUILT_BY| job_test_yaml_test
art_Dockerfile -->|BUILT_BY| job_build_yaml_prepare
art_Dockerfile -->|BUILT_BY| job_pr_checks_yml_linters
artifacts-index.yaml#build-index(ci_job) —[DEPLOYS_TO]—>aws(environment)build.yaml#build(ci_job) —[DEPLOYS_TO]—>aws(environment)build.yaml#bump_version(ci_job) —[DEPLOYS_TO]—>${{ needs.prepare.outputs.channel }}(environment)build.yaml#sign(ci_job) —[DEPLOYS_TO]—>aws(environment)d4391456-6227-409f-8b8e-ba95e5bf13c2(code_module) —[BUILT_BY]—>build.yaml#prepare(ci_job)d4391456-6227-409f-8b8e-ba95e5bf13c2(code_module) —[BUILT_BY]—>pr-checks.yml#linters(ci_job)d4391456-6227-409f-8b8e-ba95e5bf13c2(code_module) —[PACKAGED_BY]—>Dockerfile(container)tests(code_module) —[BUILT_BY]—>test.yaml#test(ci_job)Dockerfile(container) —[BUILT_BY]—>build.yaml#prepare(ci_job)Dockerfile(container) —[BUILT_BY]—>pr-checks.yml#linters(ci_job)
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(["home-assistant/operating-system (9 workflows)"]):::atlasRoot
subgraph sg_grp_0_CI___Verification["CI & Verification (2 workflows · 2 jobs)"]
direction TB
subgraph sg_wf_1_OS_build__PR_["OS build (PR) (1 jobs)"]
direction TB
wf_1_OS_build__PR_(["Trigger: OS build (PR)"]):::atlasWorkflow
job_1_build["build"]:::atlasJob
wf_1_OS_build__PR_ --> job_1_build
end
pipeline_root --> wf_1_OS_build__PR_
subgraph sg_wf_5_PR_checks["PR checks (1 jobs)"]
direction TB
wf_5_PR_checks(["Trigger: PR checks"]):::atlasWorkflow
job_5_linters["linters"]:::atlasJob
wf_5_PR_checks --> job_5_linters
end
pipeline_root --> wf_5_PR_checks
end
subgraph sg_grp_1_Release___Deploy["Release & Deploy (2 workflows · 7 jobs)"]
direction TB
subgraph sg_wf_2_OS_build["OS build (6 jobs)"]
direction TB
wf_2_OS_build(["Trigger: OS build"]):::atlasWorkflow
job_2_prepare["prepare"]:::atlasJob
job_2_build["build"]:::atlasJob
job_2_test["test"]:::atlasJob
wf_2_OS_build --> job_2_prepare
job_2_prepare --> job_2_build
job_2_build --> job_2_test
job_2_prepare --> job_2_test
end
pipeline_root --> wf_2_OS_build
subgraph sg_wf_6_Release_Drafter["Release Drafter (1 jobs)"]
direction TB
wf_6_Release_Drafter(["Trigger: Release Drafter"]):::atlasWorkflow
job_6_update_release_draft["update_release_draft"]:::atlasJob
wf_6_Release_Drafter --> job_6_update_release_draft
end
pipeline_root --> wf_6_Release_Drafter
end
subgraph sg_grp_2_Scheduled___Manual["Scheduled & Manual (2 workflows · 2 jobs)"]
direction TB
subgraph sg_wf_0_Update_artifacts_index["Update artifacts index (1 jobs)"]
direction TB
wf_0_Update_artifacts_index(["Trigger: Update artifacts index"]):::atlasWorkflow
job_0_build_index["build-index"]:::atlasJob
wf_0_Update_artifacts_index --> job_0_build_index
end
pipeline_root --> wf_0_Update_artifacts_index
subgraph sg_wf_8_Test_HAOS_image["Test HAOS image (1 jobs)"]
direction TB
wf_8_Test_HAOS_image(["Trigger: Test HAOS image"]):::atlasWorkflow
job_8_test["test"]:::atlasJob
wf_8_Test_HAOS_image --> job_8_test
end
pipeline_root --> wf_8_Test_HAOS_image
end
subgraph sg_grp_3_Security___Governance["Security & Governance (2 workflows · 2 jobs)"]
direction TB
subgraph sg_wf_4_Lock["Lock (1 jobs)"]
direction TB
wf_4_Lock(["Trigger: Lock"]):::atlasWorkflow
job_4_lock["lock"]:::atlasJob
wf_4_Lock --> job_4_lock
end
pipeline_root --> wf_4_Lock
subgraph sg_wf_7_Stale["Stale (1 jobs)"]
direction TB
wf_7_Stale(["Trigger: Stale"]):::atlasWorkflow
job_7_stale["stale"]:::atlasJob
wf_7_Stale --> job_7_stale
end
pipeline_root --> wf_7_Stale
end
subgraph sg_grp_4_Automation___Other["Automation & Other (1 workflows · 1 jobs)"]
direction TB
subgraph sg_wf_3_Label_Actions["Label Actions (1 jobs)"]
direction TB
wf_3_Label_Actions(["Trigger: Label Actions"]):::atlasWorkflow
job_3_action["action"]:::atlasJob
wf_3_Label_Actions --> job_3_action
end
pipeline_root --> wf_3_Label_Actions
end6-Dimension Scorecard Breakdown
Code Quality
Weight 20%avg_cc=4.53, max_cc=45, duplication=55.07%, dead_code=1
Security
Weight 20%vulnerabilities=0, secrets=1, pipeline_security_findings=9
Maintainability
Weight 15%avg_cognitive=6.44, max_cognitive=89, fitness_violations=3, oversized_files=1
Test Coverage
Weight 15%coverage=unavailable, ci_test_job=True, test_files_detected=True
Dependency Health
Weight 15%dependencies=3, outdated=0, vulnerable=0, has_lockfile=False
Pipeline Health
Weight 15%workflows=9, operational_antipatterns=19, parallel_branches=True
Module Complexity & Quality Heatmap
Unreferenced / Dead Code Symbols Preview (1)
standard_kconfigbuildroot-external/scripts/kconfiglib.py:6238Architectural Fitness Rules
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDbuildroot-external/scripts/kconfiglib.py:1Repository duplication_pct (55.07) exceeds policy threshold (15.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDbuildroot-external/scripts/kconfiglib.py:1Repository max_cognitive_complexity (89.0) exceeds policy threshold (25.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDbuildroot-external/scripts/kconfiglib.py:1Repository max_cyclomatic_complexity (45.0) exceeds policy threshold (20.0).
Supply-Chain Dependencies & OSV Vulnerabilities
No known OSV vulnerabilities detected across 3 parsed dependencies.
Redacted Secret Findings
ATRUSS-SEC-004.github/workflows/build.yaml:326Private key material header detected.
-----BEGIN ... PRIVATE KEY----- [REDACTED]Code-to-Cloud & Workspace Packages
Workspace Packages
Single-package repository or no monorepo workspace manifests.