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.
51 of your 514 findings came from Repobility's proprietary detections. ✓ Repobility tags below mark them.

Scan timing: clone 4.54s · analysis 20.72s · 17.7 MB · GitHub API rate-limit (preflight)

FuelLabs/sway

https://github.com/FuelLabs/sway · scanned 2026-06-05 09:28 UTC (5 days, 17 hours ago) · 10 languages

354 raw signals (154 security + 200 graph) 11th percentile · Rust · large (100-500K LoC) System graph score 82 (lower by 27)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 5 days, 17 hours ago · v2 · 127 actionable findings from 2 signal sources. 127 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 37.8 0.25 9.45
testing_score 43.0 0.20 8.60
documentation_score 68.0 0.15 10.20
practices_score 77.0 0.15 11.55
code_quality 62.0 0.10 6.20
Overall 1.00 55.0
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Scan summary Quality grade C (55/100). Dimensions: security 38, maintainability 60. 154 findings (87 security). 236,715 lines analyzed.

Showing 80 of 127 actionable findings. 254 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.

critical Security checks security secrets conf 0.95 25 occurrences Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks detected a committed secret or credential pattern.
9 files, 25 locations
test/src/e2e_vm_tests/test_programs/should_pass/storage_slots_json_generation/json_storage_slots_oracle.dynamic_storage.release.json:83, 91, 103, 111, 123, 131 (6 hits)
test/src/e2e_vm_tests/test_programs/should_pass/storage_slots_json_generation/json_storage_slots_oracle_new_encoding.release.json:143, 151, 163, 171 (4 hits)
test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/basic_storage/json_storage_slots_oracle_new_encoding.debug.json:23, 31, 43, 51 (4 hits)
sway-ir/tests/serialize/get_storage_key.ir:4, 6 (2 hits)
test/src/e2e_vm_tests/test_programs/should_pass/language/duplicated_storage_keys/test.dynamic_storage.toml:11, 28 (2 hits)
test/src/e2e_vm_tests/test_programs/should_pass/static_analysis/cei_pattern_violation/src/main.sw:21, 32 (2 hits)
test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/storage_access_contract/json_storage_slots_oracle_new_encoding.debug.json:63, 71 (2 hits)
test/src/in_language_tests/test_programs/ecr_inline_tests/src/main.sw:151, 152 (2 hits)
low Security checks cicd CI/CD security conf 0.35 ✓ Repobility 8 occurrences Workflow references repository secrets in a pull_request workflow
Fork pull_request runs do not receive normal repository secrets on GitHub Actions. Review this as a reliability/intent signal, not as direct fork-secret exfiltration. Raise severity only for pull_request_target or another trusted-context path that runs untrusted PR code with secrets.
2 files, 8 locations
.github/workflows/ci.yml:479, 675, 707, 740, 753, 773, 786 (7 hits)
.github/workflows/benchmark.yml:50
CI/CD securityworkflow secretsGitHub Actions
high Security checks security path traversal conf 0.80 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file path without sanitization. Allows reading arbitrary files.
Use os.path.realpath() and verify the path starts with your expected base directory. Use secure_filename() for uploads.
sway-lsp/src/server.rs:41
high Security checks software dependencies conf 0.88 atomic-polyfill: RUSTSEC-2023-0089
atomic-polyfill is unmaintained
Cargo.lock
high Security checks software dependencies conf 0.88 bincode: RUSTSEC-2025-0141
Bincode is unmaintained
Cargo.lock
high Security checks software dependencies conf 0.88 derivative: RUSTSEC-2024-0388
`derivative` is unmaintained; consider using an alternative
Cargo.lock
high Security checks cicd CI/CD security conf 0.92 2 occurrences Dockerfile copies the entire context without .dockerignore
COPY . or ADD . sends the full build context to Docker. Without .dockerignore this can include secrets, git history, and local artifacts.
lines 14, 22
deployment/Dockerfile:14, 22 (2 hits)
CI/CD securitycontainers
high Security checks software dependencies conf 0.90 ✓ Repobility 2 occurrences Dockerfile FROM `lukemathwalker/cargo-chef:latest-rust-1.87` not pinned by digest
`FROM lukemathwalker/cargo-chef:latest-rust-1.87` resolves the tag at build time. The registry CAN re-push a different image for the same tag, so every build is potentially different. Production images should pin to `image@sha256:...` for reproducibility + supply-chain integrity.
lines 2, 26
deployment/Dockerfile:2, 26 (2 hits)
high Security checks software dependencies conf 0.88 git2: RUSTSEC-2026-0008
Potential undefined behavior when dereferencing Buf struct
Cargo.lock
high Security checks cicd CI/CD security conf 0.90 ✓ Repobility 5 occurrences GitHub Action is tag-pinned rather than SHA-pinned
Action `dtolnay/rust-toolchain` pinned to mutable ref `@master` uses a mutable tag or branch. Pin external actions to a reviewed full commit SHA when the workflow is security-sensitive.
3 files, 5 locations
.github/workflows/ci.yml:61, 81, 103 (3 hits)
.github/workflows/gh-pages.yml:26
.github/workflows/spellcheck.yml:14
CI/CD securitySupply chainGitHub Actions
low Security checks cicd CI/CD security conf 0.90 ✓ Repobility 11 occurrences GitHub Action is tag-pinned rather than SHA-pinned
Action `actions/checkout` pinned to mutable ref `@v6` uses a mutable tag or branch. Pin external actions to a reviewed full commit SHA when the workflow is security-sensitive.
4 files, 11 locations
.github/workflows/ci.yml:58, 78, 100, 206 (7 hits)
.github/workflows/spellcheck.yml:11 (2 hits)
.github/workflows/gh-pages.yml:21
.github/workflows/nightly-cargo-audit.yml:11
CI/CD securitySupply chainGitHub Actions
high Security checks software dependencies conf 0.88 gix-features: RUSTSEC-2025-0021
SHA-1 collision attacks are not detected
Cargo.lock
high Security checks software dependencies conf 0.88 gix-validate: GHSA-p3hw-mv63-rf9w
gix's submodule name validation bypass + trust inheritance flaw enables path traversal and credential disclosure
Cargo.lock
high Security checks software dependencies conf 0.88 paste: RUSTSEC-2024-0436
paste - no longer maintained
Cargo.lock
high Security checks software dependencies conf 0.88 proc-macro-error: RUSTSEC-2024-0370
proc-macro-error is unmaintained
Cargo.lock
high Security checks software dependencies conf 0.88 rustls-pemfile: RUSTSEC-2025-0134
rustls-pemfile is unmaintained
Cargo.lock
high Security checks software dependencies conf 0.88 rustls-webpki: RUSTSEC-2026-0098
Name constraints for URI names were incorrectly accepted
Cargo.lock
high Security checks software dependencies conf 0.88 rustls-webpki: RUSTSEC-2026-0099
Name constraints were accepted for certificates asserting a wildcard name
Cargo.lock
high Security checks software dependencies conf 0.88 rustls-webpki: RUSTSEC-2026-0104
Reachable panic in certificate revocation list parsing
Cargo.lock
high Security checks software dependencies conf 0.88 tracing-subscriber: RUSTSEC-2025-0055
Logging user input may result in poisoning logs with ANSI escape sequences
Cargo.lock
high Security checks software dependencies conf 0.88 yaml-rust: RUSTSEC-2024-0320
yaml-rust is unmaintained.
Cargo.lock
high System graph cicd CI/CD security conf 1.00 29 occurrences GitHub Action tracks a moving branch
dtolnay/rust-toolchain@master can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
4 files, 29 locations
.github/workflows/ci.yml:61, 81, 103, 119, 135, 149, 163, 177, +18 more (26 hits)
.github/workflows/docs.yml:10
.github/workflows/gh-pages.yml:26
.github/workflows/spellcheck.yml:14
CI/CD securitySupply chainGithub actions
medium Security checks security auth conf 0.92 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks but does not define .repobility/access.yml or equivalent authorization documentation.
The repository uses web/API frameworks but does not define .repobility/access.yml or equivalent authorization documentation.
medium Security checks cicd CI/CD security conf 0.90 Docker build context has no .dockerignore
Without .dockerignore, build context can include source history, local env files, dependencies, and generated artifacts.
.dockerignore CI/CD securitycontainers
high Security checks cicd CI/CD security conf 0.82 Docker final stage has no non-root USER
Docker images run as root unless the image or Dockerfile switches to a non-root user.
deployment/Dockerfile:26 CI/CD securitycontainers
medium Security checks cicd CI/CD security conf 0.90 Dockerfile installs dependencies after copying the full source tree
When dependency installation comes after COPY ., any source change invalidates the dependency layer and makes Docker rebuild much more slowly.
deployment/Dockerfile:23 CI/CD securitycontainers
medium System graph hardware Security conf 1.00 Dockerfile runs as root: deployment/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph cicd CI/CD security conf 1.00 29 occurrences GitHub Action is tag-pinned rather than SHA-pinned
CodSpeedHQ/action@v3 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
4 files, 29 locations
.github/workflows/gh-pages.yml:22, 51, 65, 73, 81, 100, 115, 123, +3 more (21 hits)
.github/workflows/ci.yml:66, 86, 209, 249 (6 hits)
.github/workflows/benchmark.yml:45
.github/workflows/nightly-cargo-audit.yml:12
CI/CD securitySupply chainGitHub Actions
medium System graph cicd CI/CD security conf 1.00 GitHub Actions workflow grants broad write permissions
CI tokens with write permissions increase blast radius when an action, dependency, or PR workflow is compromised. Prefer job-level least-privilege permissions.
.github/workflows/gh-pages.yml CI/CD securitySupply chainGithub actions
medium System graph cicd CI/CD security conf 1.00 GitHub Actions workflow grants broad write permissions
CI tokens with write permissions increase blast radius when an action, dependency, or PR workflow is compromised. Prefer job-level least-privilege permissions.
.github/workflows/ci.yml CI/CD securitySupply chainGithub actions
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). Either auth lives in custom code, in a separate service, or is missing.
auth
low Security checks security auth conf 0.76 [AUC005] No authorization-focused tests detected: No test files with common authorization, ownership, 403, admin, or super_admin assertions were found.
No test files with common authorization, ownership, 403, admin, or super_admin assertions were found.
low Security checks quality Quality conf 0.60 11 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.
11 files, 11 locations
forc-plugins/forc-doc/src/render/search.rs:71
forc/src/ops/forc_build.rs:13
forc/src/ops/forc_predicate_root.rs:19
sway-core/src/decl_engine/parsed_id.rs:28
sway-core/src/language/ty/declaration/constant.rs:92
sway-core/src/language/ty/declaration/struct.rs:89
sway-core/src/semantic_analysis/ast_node/declaration/trait.rs:515
sway-core/src/semantic_analysis/ast_node/expression/typed_expression/tuple_index_access.rs:18
duplicationquality
high Security checks quality Quality conf 0.62 Source file name looks like an AI patch artifact
Files named as final, fixed, copy, new, or backup are often temporary patch artifacts. They may be legitimate, but they deserve review before becoming production surface area.
sway-lsp/src/capabilities/code_actions/struct_decl/struct_new.rs:1
high Security checks quality Quality conf 0.62 Source file name looks like an AI patch artifact
Files named as final, fixed, copy, new, or backup are often temporary patch artifacts. They may be legitimate, but they deserve review before becoming production surface area.
forc/src/ops/forc_clean.rs:1
low System graph quality Maintenance conf 1.00 307 TODO/FIXME markers
High count of TODO/FIXME/HACK markers — track them as issues so they're not forgotten.
low System graph hardware Coverage conf 1.00 Containers defined but no K8s/orchestration manifest found
Repo has Dockerfiles/compose but no Kubernetes/Nomad manifests. If the target deployment is K8s, the manifests may live in a separate ops repo.
Deployment
low System graph hardware Supply chain conf 1.00 Docker base image is tag-pinned but not digest-pinned: lukemathwalker/cargo-chef:latest-rust-1.87
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
deployment/Dockerfile:2 containersPinned dependencies
low System graph hardware Supply chain conf 1.00 Docker base image is tag-pinned but not digest-pinned: ubuntu:20.04
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
deployment/Dockerfile:26 containersPinned dependencies
low System graph software Dead code candidate conf 1.00 File has no detected symbols: scripts/highlightjs/sway.js
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: scripts/prism/prism-sway.js
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: scripts/prism/prism-sway.min.js
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
95 tests / 665 src (ratio 0.14).
low System graph frontend Frontend quality conf 1.00 Stray `console.log` in TS/JS — docs/book/theme/highlight.js:105
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
Fq console leak
low System graph frontend Frontend quality conf 1.00 Stray `console.log` in TS/JS — docs/reference/theme/highlight.js:105
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
Fq console leak
low System graph frontend Frontend quality conf 1.00 Stray `console.log` in TS/JS — forc-plugins/forc-doc/src/static.files/highlight.js:105
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
Fq console leak
low System graph quality Complexity conf 1.00 Very large file: forc-pkg/src/manifest/mod.rs (1823 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: forc-pkg/src/pkg.rs (2933 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: forc-plugins/forc-migrate/src/visiting/mod.rs (2165 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/abi_generation/fuel_abi.rs (1663 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/asm_generation/fuel/fuel_asm_builder.rs (2695 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/asm_lang/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: sway-core/src/asm_lang/virtual_ops.rs (2191 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/control_flow_analysis/dead_code_analysis.rs (2667 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/ir_generation/const_eval.rs (2213 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/ir_generation/function.rs (6315 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/language/ty/declaration/function.rs (1585 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/language/ty/expression/expression_variant.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: sway-core/src/lib.rs (2118 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/semantic_analysis/ast_node/declaration/impl_trait.rs (2018 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/semantic_analysis/ast_node/expression/intrinsic_function.rs (2442 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/semantic_analysis/ast_node/expression/typed_expression.rs (3528 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/semantic_analysis/namespace/trait_map.rs (1818 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/transform/to_parsed_lang/convert_parse_tree.rs (5559 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/type_system/engine.rs (2388 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/type_system/id.rs (1595 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-core/src/type_system/info.rs (2364 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-error/src/error.rs (3668 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-ir/src/instruction.rs (2179 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-ir/src/irtype.rs (1337 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-ir/src/optimize/memcpyopt.rs (1310 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-ir/src/parser.rs (1953 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-ir/src/printer.rs (1718 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-ir/src/verify.rs (1431 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-lsp/src/traverse/typed_tree.rs (1661 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sway-lsp/tests/lib.rs (2672 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: swayfmt/src/utils/language/expr/mod.rs (1363 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: swayfmt/tests/mod.rs (3489 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: test/src/e2e_vm_tests/mod.rs (2057 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: test/src/sdk-harness/test_projects/tx_fields/mod.rs (1973 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/a4d86175-0c33-480b-a54b-69eec82c8821/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/a4d86175-0c33-480b-a54b-69eec82c8821/

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.