RepoTrust

Leaderboard github.com

bestruirui/octopus

One Hub All LLMs For You | 为个人打造的 LLM API 聚合网关

  • View repository ↗
  • TypeScript
  • ★ 2,749
  • commit 8aa58b0340ba
  • scored 2026-11-14
  • scoring prov-4+qual-2+sec-2

AI provenance

1%

explicit

Confidence
95%
Coverage
100%

Estimated share of AI-generated code. Explicit attribution is a lower bound.

Code quality

54/100

weak

Confidence
90%
Coverage
100%

Complexity, duplication, lint density, tests, CI, docs and review process.

Security

57/100

weak

Confidence
85%
Coverage
100%

Secrets, static analysis, vulnerable dependencies, CI and supply-chain posture.

  • Repository: https://github.com/bestruirui/octopus
  • Commit: 8aa58b0340ba2de58ce74fbfacd32597c44842a2
  • Generated: 2026-11-14T00:02:13+00:00
  • Scorer 0.1.0, scoring prov-4+qual-2+sec-2, report schema v2

Scores

Pillar Score Signal Confidence Coverage
AI provenance (estimated AI-generated share) 1 explicit 95% 100%
Code quality 54 weak 90% 100%
Security 57 weak 85% 100%

AI provenance

Explicit AI attribution on 1% of first-party code added; an estimated 1% including velocity signals.

  • Explicitly attributed share (lower bound): 1.0%
  • Unattributed share in AI-consistent velocity bursts: 25.3%
  • Estimated AI-generated share: 1.0%
AI tool Attributed commits Lines added
Claude Code 2 682
GitHub Copilot coding agent 1 5

Current source lines last changed by AI-attributed commits: 0 of 22,613.

Too few lines in one group to compare finding densities.

  • Stylometry index: 0.02 per 1,000 lines (narrated steps 0, placeholders 0, assistant phrasing 0, emoji 1). Reported as a signal, not scored.
Month Lines added Attributed to AI
2025-11 9,307 0%
2025-12 28,662 0%
2026-01 5,285 13%
2026-02 1,261 0%
2026-03 1,710 0%
2026-04 1,361 0%
2026-05 742 0%
2026-07 219 0%
2026-08 12,078 0%
2026-09 4,946 0%
2026-10 211 0%

Evidence

  • Claude Code: trailer 'Co-authored-by: Claude' (94e643e9c774)
  • Claude Code: trailer 'Co-Authored-By: Claude' (32b0a1796ce6)
  • GitHub Copilot coding agent: trailer 'Co-authored-by: Copilot' (f66e8f85f814)
  • 1,483 lines of first-party code in ~1.1h (1,393 lines/hour, 1 commit session) (55873f7fe106)
  • 3,912 lines of first-party code in ~4.2h (941 lines/hour, 2 commit session) (f07b8dc026a0)
  • 1,343 lines of first-party code in ~1.6h (819 lines/hour, 3 commit session) (ce445d179e9a)
  • 3,144 lines of first-party code in ~4.0h (786 lines/hour, 1 commit session) (520ba5241149)
  • 2,522 lines of first-party code in ~4.1h (616 lines/hour, 2 commit session) (d0eb759548c8)
  • 2,149 lines of first-party code in ~4.0h (537 lines/hour, 1 commit session) (fd8fee2a708f)
  • 2,071 lines of first-party code in ~4.0h (518 lines/hour, 1 commit session) (19aa05988675)

AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.

Code quality

Code quality is weak: test-to-source ratio 0.00, no CI test run detected; 21% of function code in complex or long functions; 2% duplicated lines. Weakest area: testing.

Area Score
Complexity (lizard) 53
Duplication 89
Code smells (Opengrep) 52
Tests and CI 15
Documentation 80
Type safety 100
Process (Scorecard review/maintenance) n/a
  • Functions: 1,398; mean complexity 2.8, 90th percentile 6; 26 complex and 15 long functions
  • Duplicated lines: 2.0% of 16,238 compared
  • Tests: 0 test lines for 22,613 source lines (ratio 0.00); CI test commands: none detected; 1% of recent source commits also change tests
  • Docs missing or thin: changelog

Most complex functions:

Security

Security posture is weak: 22 known vulnerabilities in 9 dependencies; 3 high-severity SAST findings; 24 high-severity workflow issues. Weakest area: posture.

Area Score
Secrets (gitleaks, tree + history) 94
Static analysis (Opengrep) 94
Vulnerable dependencies (OSV) 46
CI workflows (zizmor) 1
Posture (policy, updates, signing, lockfiles) 0
OpenSSF Scorecard n/a
  • Known vulnerabilities: 22 in 9 packages (critical 0, high 5, medium 7, low 1)

  • Posture checks passed: lockfiles; missing: security policy, dependency updates, signed commits

Top findings

Severity Finding Location
high opengrep/go.lang.security.audit.dangerous-exec-command: Detected non-static command inside Command. Audit the input to 'exec.Command'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code. [confidence low] internal/update/core.go:153
high opengrep/go.lang.security.audit.dangerous-syscall-exec: Detected non-static command inside Exec. Audit the input to 'syscall.Exec'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code. [confidence low] internal/update/core.go:163
high opengrep/dockerfile.security.missing-user: By not specifying a USER, a program in the container may run as 'root'. This is a security hazard. If an attacker can control a process running as root, they may have control over the container. Ensure that the last USER in a Dockerfile is a USER other than 'root'. [confidence medium] scripts/dockerfile/Dockerfile:20
high osv/GHSA-6j4f-fj2g-mc7p: brace-expansion@5.0.9 (npm) is affected by GHSA-6j4f-fj2g-mc7p web/pnpm-lock.yaml
high osv/GHSA-qhr7-859c-m2p7: brace-expansion@5.0.9 (npm) is affected by GHSA-qhr7-859c-m2p7 web/pnpm-lock.yaml
high osv/GHSA-68fv-2mgg-jv7q: source-map-js@1.2.1 (npm) is affected by GHSA-68fv-2mgg-jv7q web/pnpm-lock.yaml
high osv/GHSA-587h-7wmj-h5pm: vite@8.2.2 (npm) is affected by GHSA-587h-7wmj-h5pm web/pnpm-lock.yaml
high osv/GHSA-mrhx-c7xc-m3w5: zod@4.5.4 (npm) is affected by GHSA-mrhx-c7xc-m3w5 web/pnpm-lock.yaml
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/build.yaml:15
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/build.yaml:18
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/build.yaml:23
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/build.yaml:36
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/build.yaml:42
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:20
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:34
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:47
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:52
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:67
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:73
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:82
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:97
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:105
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:115
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:118
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yaml:121

Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.

Distribution signals

Signals consistent with a repository that exists to distribute a download. They are heuristics, not a verdict; release files were not downloaded or inspected.

Repository profile

  • Source lines: 22,613; test lines: 0
Language Lines
TypeScript 12,691
Go 9,628
JavaScript 190
Shell 104

Embed a badge

Maintainers can show these in a README. Badges update when the repository is re-scored.

[![RepoTrust ai](https://repotrust.synapticcyber.com/badge/github.com/bestruirui/octopus/ai.svg)](https://repotrust.synapticcyber.com/r/github.com/bestruirui/octopus/)
[![RepoTrust quality](https://repotrust.synapticcyber.com/badge/github.com/bestruirui/octopus/quality.svg)](https://repotrust.synapticcyber.com/r/github.com/bestruirui/octopus/)
[![RepoTrust security](https://repotrust.synapticcyber.com/badge/github.com/bestruirui/octopus/security.svg)](https://repotrust.synapticcyber.com/r/github.com/bestruirui/octopus/)