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

Scan timing: clone 3.15s · analysis 12.37s · 4.5 MB · GitHub API rate-limit (preflight)

facebookincubator/antlir

https://github.com/facebookincubator/antlir · scanned 2026-06-05 16:59 UTC (4 days, 23 hours ago) · 10 languages

205 raw signals (113 security + 92 graph) 16th percentile · Rust · medium (20-100K LoC) System graph score 93 (lower by 34)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 4 days, 23 hours ago · v2 · 88 actionable findings from 2 signal sources. 56 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 40.0 0.15 6.00
security_score 46.0 0.25 11.50
testing_score 77.0 0.20 15.40
documentation_score 63.0 0.15 9.45
practices_score 70.0 0.15 10.50
code_quality 60.1 0.10 6.01
Overall 1.00 58.9
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Scan summary Quality grade C (59/100). Dimensions: security 46, maintainability 40. 113 findings (13 security). 57,972 lines analyzed.

Showing 42 of 88 actionable findings. 144 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 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks detected a committed secret or credential pattern.
antlir/antlir2/os/package.bzl:6
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.
antlir/antlir2/package_managers/snapshot/metadata/src/decompress.rs:33
high Security checks quality Quality conf 1.00 ✓ Repobility 10 occurrences `self._style` used but never assigned in __init__
Method `format` of class `ColorFormatter` reads `self._style`, 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.
4 files, 10 locations
antlir/fs_utils.py:148, 182, 252, 261, 265 (5 hits)
antlir/common.py:50, 53 (2 hits)
antlir/shape.py:116, 124 (2 hits)
antlir/freeze.py:78
high Security checks quality Quality conf 1.00 ✓ Repobility Blocking call `time.sleep` inside async function `async_retry_fn`
`time.sleep` is a synchronous (blocking) call. When invoked inside an `async def` it stalls the event loop, preventing every other coroutine in the process from making progress.
antlir/common.py:190
low Security checks cicd CI/CD security conf 0.90 ✓ Repobility 7 occurrences GitHub Action is tag-pinned rather than SHA-pinned
Action `actions/checkout` pinned to mutable ref `@v4` uses a mutable tag or branch. Pin external actions to a reviewed full commit SHA when the workflow is security-sensitive.
2 files, 7 locations
.github/workflows/docs.yml:20, 24, 45, 67 (6 hits)
.github/workflows/ci.yml:13
CI/CD securitySupply chainGitHub Actions
high Security checks cicd CI/CD security conf 0.90 ✓ Repobility 3 occurrences GitHub Action is tag-pinned rather than SHA-pinned
Action `facebook/install-dotslash` pinned to mutable ref `@latest` uses a mutable tag or branch. Pin external actions to a reviewed full commit SHA when the workflow is security-sensitive.
2 files, 3 locations
.github/workflows/ci.yml:16, 17 (2 hits)
.github/workflows/docs.yml:23
CI/CD securitySupply chainGitHub Actions
low Security checks quality Error handling conf 1.00 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even in cleanup code, log at DEBUG level.
Log the error: `except Exception: logger.debug('cleanup failed', exc_info=True)`. Or handle specific exception types.
antlir/antlir2/features/apt/resolve.py:190
medium Security checks security Security conf 1.00 [SEC119] World-writable / world-readable file permissions: World-writable files let any local user (or container neighbor) tamper with data; world-readable files leak secrets.
Use 0600 (owner rw only) for secrets, 0644 for general files, 0700 for directories with secrets. Java: `setReadable(true, true)` (owner-only).
antlir/fs_utils.py:248
low Security checks quality Error handling conf 0.55 ✓ Repobility 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.
antlir/antlir2/features/rpm/resolve.py:193 Error handlingquality
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/docs.yml CI/CD securitySupply chainGithub actions
medium System graph security security conf 1.00 Insecure pattern 'weak_hash' in antlir/antlir2/package_managers/snapshot/metadata/src/generate/deb/inrelease.rs:173
Found a known-risky pattern (weak_hash). Review and replace if possible.
antlir/antlir2/package_managers/snapshot/metadata/src/generate/deb/inrelease.rs:173 Weak hash
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — antlir/antlir2/features/apt/driver.py:164
`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
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — antlir/antlir2/features/rpm/driver.py:324
`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
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — antlir/antlir2/package_managers/dnf/snapshot/targets_from_upstream/targets_from_upstream.py:79
`requests.get(...)` 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
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — antlir/antlir2/tools/debuginfo-splitter.py:40
`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
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 software Race condition conf 1.00 [SEC124] TOCTOU file access (os.access then open): Check-then-use file pattern (access/exists then open) lets an attacker swap the file between check and use (symlink attack). `mktemp` is deprecated for the same reason.
Use `os.open(path, os.O_CREAT | os.O_EXCL | os.O_WRONLY)` for atomic create-only. Use `tempfile.NamedTemporaryFile()` (not `mktemp`). For locking, use `fcntl.flock`.
antlir/antlir2/features/apt/resolve.py:82
low Security checks software Race condition conf 1.00 [SEC124] TOCTOU file access (os.access then open): Check-then-use file pattern (access/exists then open) lets an attacker swap the file between check and use (symlink attack). `mktemp` is deprecated for the same reason.
Use `os.open(path, os.O_CREAT | os.O_EXCL | os.O_WRONLY)` for atomic create-only. Use `tempfile.NamedTemporaryFile()` (not `mktemp`). For locking, use `fcntl.flock`.
antlir/antlir2/features/apt/driver.py:44
low Security checks quality Quality conf 0.60 20 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, 13 locations
antlir/antlir2/antlir2_users/src/shadow.rs:1, 5 (2 hits)
antlir/antlir2/antlir2_isolate/main.rs:23
antlir/antlir2/antlir2_packager/src/ext4.rs:1
antlir/antlir2/antlir2_packager/src/sendstream/userspace/tlv.rs:4
antlir/antlir2/antlir2_packager/src/sendstream/writer.rs:1
antlir/antlir2/antlir2_packager/src/tar.rs:1
antlir/antlir2/antlir2_packager/src/vfat.rs:1
antlir/antlir2/antlir2_receive/src/main.rs:202
duplicationquality
low Security checks software dependencies conf 0.90 npm package `docusaurus-plugin-internaldocs-fb` is minor version(s) behind (1.19.3 -> 1.20.0)
`docusaurus-plugin-internaldocs-fb` is pinned/resolved at 1.19.3 but the latest stable release on the npm registry is 1.20.0 (minor version(s) behind). Outdated dependencies accumulate unpatched bugs and make future security upgrades harder. This is the version-currency signal Dependabot version-up…
antlir/antlir2/docs/package.json
low System graph software Dead code candidate conf 1.00 File has no detected symbols: antlir/antlir2/docs/babel.config.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: antlir/antlir2/docs/docusaurus.config.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: antlir/antlir2/docs/sidebars.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: antlir/antlir2/features/install/tests/true.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: antlir/antlir2/features/rpm/tests/test_installed_rpms.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: antlir/rust/trigger_rust_module_init.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph quality Integrity conf 1.00 7 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: antlir/common.py:retry_fn, antlir/common.py:async_retry_fn This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
7 occurrences
repo-level (7 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `spec_backup` in antlir/antlir2/features/rpm/driver.py:269
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: async_retryable
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/common.py:197
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_debuginfo
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/antlir2/tools/debuginfo-splitter.py:85
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_metadata
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/antlir2/tools/debuginfo-splitter.py:132
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_split_dir
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/antlir2/tools/debuginfo-splitter.py:136
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_strip
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/antlir2/tools/debuginfo-splitter.py:61
low System graph software Dead code conf 1.00 Possibly dead Python function: not_none
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/common.py:86
low System graph software Dead code conf 1.00 Possibly dead Python function: progress
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/antlir2/features/rpm/driver.py:197
low System graph software Dead code conf 1.00 Possibly dead Python function: retryable
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/common.py:130
low System graph software Dead code conf 1.00 Possibly dead Python function: scriptout
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/antlir2/features/rpm/driver.py:119
low System graph software Dead code conf 1.00 Possibly dead Python function: shell_quote
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/fs_utils.py:147
low System graph software Dead code conf 1.00 Possibly dead Python function: touch
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/fs_utils.py:251
low System graph software Dead code conf 1.00 Possibly dead Python function: wrapper
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
antlir/common.py:214
low System graph quality Complexity conf 1.00 Very large file: antlir/antlir2/cad_stack/cad_stack_fs/src/lib.rs (1476 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: antlir/btrfs_send_stream_upgrade/src/send_elements/send_command.rs (1513 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/3ba7ebbc-352d-47e4-9ea4-c734475e78bb/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/3ba7ebbc-352d-47e4-9ea4-c734475e78bb/

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.