Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.
67 of your 109 findings came from Repobility's proprietary detections. ✓ Repobility tags below mark them.

Scan timing: clone 13.15s · analysis 14.7s · 39.2 MB · GitHub API rate-limit (preflight)

tock/tock

https://github.com/tock/tock · scanned 2026-06-06 00:51 UTC (4 days ago) · 10 languages

264 raw signals (102 security + 162 graph) 11/13 scanners ran 54th percentile · Rust · large (100-500K LoC) System graph score 91 (lower by 22)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 4 days ago · v2 · 95 actionable findings from 2 signal sources. 88 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Score breakdown â 2026-05-18-v5
Component Sub-score Weight Contribution
structure_score 60.0 0.15 9.00
security_score 100.0 0.25 25.00
testing_score 28.0 0.20 5.60
documentation_score 80.0 0.15 12.00
practices_score 72.0 0.15 10.80
code_quality 61.0 0.10 6.10
Overall 1.00 68.5
security_score may be inflated — optional security scanners were skipped on this fast scan
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Scan summary Quality grade B- (68/100). Dimensions: security 100, maintainability 60. 102 findings (31 security). 365,196 lines analyzed.

Showing 76 of 95 actionable findings. 183 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high Security checks quality Quality conf 1.00 ✓ Repobility [MINED107] Missing import: `enum` used but not imported: The file uses `enum.something(...)` but never imports `enum`. This raises NameError at runtime the first time the line executes.
Add `import enum` at the top of the file.
tools/debugging-and-development/svd2regs/svd2regs.py:306
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED107] Missing import: `enum` used but not imported: The file uses `enum.something(...)` but never imports `enum`. This raises NameError at runtime the first time the line executes.
Add `import enum` at the top of the file.
tools/svd2regs/svd2regs.py:306
low Security checks quality Quality conf 1.00 ✓ Repobility [MINED012] Curl Pipe Bash: curl ... | sh / bash — runs unverified network code.
Review and fix per the pattern semantics. See CWE-494 / A08:2021 for context.
tools/ci/netlify-build.sh:20
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED106] Phantom test coverage: test_cariage_return: Test function `test_cariage_return` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
tools/debugging-and-development/check_process_console.py:387
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED106] Phantom test coverage: test_command_history_api: Test function `test_command_history_api` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
tools/debugging-and-development/check_process_console.py:205
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED106] Phantom test coverage: test_command_history_edit: Test function `test_command_history_edit` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
tools/debugging-and-development/check_process_console.py:483
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED106] Phantom test coverage: test_deleting: Test function `test_deleting` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
tools/debugging-and-development/check_process_console.py:344
high Security checks quality Quality conf 1.00 ✓ Repobility 2 occurrences [MINED106] Phantom test coverage: test_deleting_with: Test function `test_deleting_with` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
lines 349, 523
tools/debugging-and-development/check_process_console.py:349, 523 (2 hits)
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED106] Phantom test coverage: test_fill_command_history: Test function `test_fill_command_history` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
tools/debugging-and-development/check_process_console.py:185
high Security checks quality Quality conf 1.00 ✓ Repobility 2 occurrences [MINED106] Phantom test coverage: test_inserting: Test function `test_inserting` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
lines 316, 488
tools/debugging-and-development/check_process_console.py:316, 488 (2 hits)
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED106] Phantom test coverage: test_inserting_at_end: Test function `test_inserting_at_end` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
tools/debugging-and-development/check_process_console.py:253
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED106] Phantom test coverage: test_inserting_at_start: Test function `test_inserting_at_start` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
tools/debugging-and-development/check_process_console.py:273
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED106] Phantom test coverage: test_inserting_in_middle: Test function `test_inserting_in_middle` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
tools/debugging-and-development/check_process_console.py:294
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED106] Phantom test coverage: test_newline_return: Test function `test_newline_return` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
tools/debugging-and-development/check_process_console.py:435
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED106] Phantom test coverage: test_open_serial_port: Test function `test_open_serial_port` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
Add an explicit assertion that captures the test's intent, or remove the test.
tools/debugging-and-development/check_process_console.py:166
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED108] `self.__evaluate_encoded` used but never assigned in __init__: Method `recv_output` of class `SerialPort` reads `self.__evaluate_encoded`, but no assignment to it exists in __init__ (and no class-level fallback). This raises AttributeError the first time the method runs against an instance.
Initialize `self.__evaluate_encoded = <default>` in __init__, or add a class-level default.
tools/debugging-and-development/check_process_console.py:73
low Security checks security Injection conf 1.00 [SEC103] LDAP injection — non-constant search filter: User input concatenated into an LDAP search filter. Attackers inject `*)(uid=*` style payloads to bypass auth or enumerate accounts.
Escape with javax.naming.ldap.Rdn.escapeValue or equivalent. For python-ldap, use ldap.filter.escape_filter_chars. Better: use parameterized search APIs (Spring LdapTemplate filter encoders).
tools/debugging-and-development/embedded_data_analyzer.py:188
low Security checks cicd CI/CD security conf 0.90 ✓ Repobility 32 occurrences GitHub Action is tag-pinned rather than SHA-pinned
[MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout@v4` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-actions/changed-files compromise (2025) instantly affect ~23K repos. Pin to a 40-char commit SHA + lo…
8 files, 32 locations
.github/workflows/ci.yml:35, 36, 53, 64, 138, 158, 188, 206 (9 hits)
.github/workflows/litex_sim.yml:42, 65, 100 (6 hits)
.github/workflows/tockbot-nightly.yml:36, 89, 92, 123, 126 (5 hits)
.github/workflows/treadmill-ci.yml:86, 94 (4 hits)
.github/workflows/benchmarks.yml:27, 29 (3 hits)
.github/workflows/ci-nightly.yml:36, 51 (3 hits)
.github/workflows/labeler.yml:19
.github/workflows/mergequeue_docs.yml:31
CI/CD securitySupply chainGitHub Actions
high Security checks cicd CI/CD security conf 0.90 ✓ Repobility GitHub Action is tag-pinned rather than SHA-pinned
[MINED115] Action `tock/tock-hardware-ci/.github/workflows/treadmill-ci.yml` pinned to mutable ref `@main`: `uses: tock/tock-hardware-ci/.github/workflows/treadmill-ci.yml@main` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-actions/changed-f…
.github/workflows/treadmill-ci.yml:133 CI/CD securitySupply chainGitHub Actions
high System graph cicd CI/CD security conf 1.00 GitHub Action tracks a moving branch
tock/tock-hardware-ci/.github/workflows/treadmill-ci.yml@main can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
.github/workflows/treadmill-ci.yml:133 CI/CD securitySupply chainGithub actions
low Security checks security Injection conf 0.50 [SEC005] Command Injection Risk: Unsafe shell execution or eval of user input.
Use subprocess with shell=False and a list of args. Never eval user input.
tools/debugging-and-development/embedded_data_analyzer.py:52
low Security checks quality Error handling conf 0.55 ✓ Repobility 3 occurrences Broad exception handler needs review
This handler catches Exception/BaseException. It is actionable when it swallows errors without logging, re-raising, or returning a structured error. Handlers that intentionally convert exceptions into typed error results should not be treated as high risk.
2 files, 3 locations
tools/debugging-and-development/find_panics.py:377, 394 (2 hits)
boards/apollo3/ambiq/ambiq_bin2board.py:425
Error handlingquality
high Security checks software dependencies conf 0.70 3 occurrences Remote install command pipes network code directly to a shell
Publish a package-manager install path or add checksum/signature verification before execution. For docs, show the inspect-then-run flow and pin the downloaded artifact version.
3 files, 3 locations
boards/microbit_v2/README.md:24
doc/Getting_Started.md:38
tools/ci/netlify-build.sh:20
medium System graph cicd CI/CD security conf 1.00 2 occurrences GitHub Action is tag-pinned rather than SHA-pinned
JasonEtco/create-an-issue@v2 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
lines 58, 100
.github/workflows/ci-nightly.yml:58, 100 (2 hits)
CI/CD securitySupply chainGithub actions
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — tools/debugging-and-development/find_panics.py:130
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
low Security checks quality Quality conf 0.60 30 occurrences Duplicated implementation block across source files
Duplicate implementation blocks are maintenance debt. Keep them visible, but they are not a high-severity defect unless the duplicated logic is security-sensitive or drifting.
12 files, 24 locations
boards/clue_nrf52840/src/main.rs:165, 602, 608 (3 hits)
arch/cortex-m33/src/lib.rs:24, 33 (2 hits)
arch/cortex-m4/src/lib.rs:22, 31 (2 hits)
arch/cortex-m4f/src/lib.rs:23, 32 (2 hits)
arch/cortex-m7/src/lib.rs:21, 30 (2 hits)
arch/cortex-v7m/src/lib.rs:82, 117 (2 hits)
boards/apollo3/redboard_artemis_nano/src/io.rs:1, 16 (2 hits)
boards/apollo3/redboard_artemis_nano/src/main.rs:10, 44 (2 hits)
duplicationquality
low System graph quality Maintenance conf 1.00 331 TODO/FIXME markers
High count of TODO/FIXME/HACK markers — track them as issues so they're not forgotten.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: boards/apollo3/ambiq/keys_info.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tools/ci/check-boards-readme.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tools/repo-maintenance/update_chip_support.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph quality Tests conf 1.00 Low test-to-source ratio
121 tests / 1136 src (ratio 0.11).
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 18 places
Functions with the same first-5-line body hash: tools/debugging-and-development/svd2regs/svd2regs.py:fields, tools/debugging-and-development/svd2regs/svd2regs.py:fields, tools/debugging-and-development/svd2regs/svd2regs.py:fields, tools/debugging-and-development/svd2regs/svd2regs.py:fields This is…
duplicatesduplication
low System graph quality Integrity conf 1.00 12 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: tools/debugging-and-development/check_process_console.py:test_deleting_with, tools/debugging-and-development/check_process_console.py:test_deleting_with This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/…
12 occurrences
repo-level (12 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: tools/debugging-and-development/check_process_console.py:test_inserting_at_end, tools/debugging-and-development/check_process_console.py:test_inserting, tools/debugging-and-development/check_process_console.py:test_inserting This is *the* AI-coder fa…
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: tools/debugging-and-development/svd2regs/svd2regs.py:identifier, tools/debugging-and-development/svd2regs/svd2regs.py:identifier, tools/svd2regs/svd2regs.py:identifier, tools/svd2regs/svd2regs.py:identifier This is *the* AI-coder failure mode (4× mor…
duplicatesduplication
low System graph software Dead code conf 1.00 Possibly dead Python function: auto_int
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
boards/apollo3/ambiq/am_defines.py:536
low System graph software Dead code conf 1.00 Possibly dead Python function: compute_rsa_sign
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
boards/apollo3/ambiq/am_defines.py:471
low System graph software Dead code conf 1.00 Possibly dead Python function: encrypt_app_aes128
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
boards/apollo3/ambiq/am_defines.py:447
low System graph software Dead code conf 1.00 Possibly dead Python function: getAddr
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tools/debugging-and-development/find_panics.py:235
low System graph software Dead code conf 1.00 Possibly dead Python function: getFile
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tools/debugging-and-development/find_panics.py:182
low System graph software Dead code conf 1.00 Possibly dead Python function: getFunction
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tools/debugging-and-development/find_panics.py:139
low System graph software Dead code conf 1.00 Possibly dead Python function: getLine
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tools/debugging-and-development/find_panics.py:190
low System graph software Dead code conf 1.00 Possibly dead Python function: is_alive
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tools/debugging-and-development/check_process_console.py:77
low System graph software Dead code conf 1.00 Possibly dead Python function: send_bytewise_command
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
boards/apollo3/ambiq/ambiq_bin2board.py:724
low System graph software Dead code conf 1.00 Possibly dead Python function: sort_value
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tools/debugging-and-development/print_tock_memory_usage.py:558
low System graph software Dead code conf 1.00 Possibly dead Python function: task_stale_pr_assign
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tools/ci/tockbot/tockbot.py:83
low System graph software Dead code conf 1.00 Possibly dead Python function: verify_rsa_sign
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
boards/apollo3/ambiq/am_defines.py:485
low System graph quality Complexity conf 1.00 Very large file: arch/riscv/src/pmp.rs (2563 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: capsules/core/src/adc.rs (1336 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: capsules/core/src/process_console.rs (1491 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: capsules/extra/src/atecc508a.rs (1437 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: capsules/extra/src/net/thread/tlv.rs (1514 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: capsules/extra/src/rf233.rs (1383 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: capsules/extra/src/sdcard.rs (1680 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/apollo3/src/iom.rs (1600 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/earlgrey/src/epmp.rs (1270 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/earlgrey/src/registers/top_earlgrey.rs (3254 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/lpc55s6x/src/clocks/syscon.rs (3118 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/lpc55s6x/src/iocon.rs (4373 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/nrf52/src/ieee802154_radio.rs (1418 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/nrf52/src/usbd.rs (2208 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/psoc62xa/src/srss.rs (1721 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/rp2040/src/pio.rs (1947 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/rp2040/src/usb.rs (2485 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/rp2350/src/gpio.rs (1554 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/sam4l/src/usbc/mod.rs (1579 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/stm32f4xx/src/can.rs (1424 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/stm32f4xx/src/dma.rs (1698 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/stm32f4xx/src/gpio.rs (1254 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/stm32f4xx/src/rcc.rs (1535 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: chips/stm32wle5xx/src/rcc.rs (1621 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: kernel/src/grant.rs (1895 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: kernel/src/kernel.rs (1448 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: kernel/src/process_loading.rs (1339 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: kernel/src/process_standard.rs (2659 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: kernel/src/processbuffer.rs (1607 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/c0959f70-06b2-4a06-a3db-a45c1498ba13/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/c0959f70-06b2-4a06-a3db-a45c1498ba13/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.