← Back to scan
File as GitHub Issue repo: ZacSweers/metro

Push this scan report to ZacSweers/metro

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… compiler/src/main/kotlin/dev/zacsweers/…:244
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… compiler/src/main/kotlin/dev/zacsweers/…:58
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… compiler/src/main/kotlin/dev/zacsweers/…:16
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/benchmark-regression.…:367
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/benchmark-regression.…:51
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/ide-integration.yml:109
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/ide-integration.yml:57
CRIT MINED116 Workflow uses `secrets.S` on a `pull_request` trigger .github/workflows/ci.yml:335
CRIT MINED116 Workflow uses `secrets.S` on a `pull_request` trigger .github/workflows/ci.yml:334
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/ci.yml:326
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/ci.yml:276
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/ci.yml:235
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/ci.yml:178
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/ci.yml:138
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/ci.yml:81
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/docs-site.yml:161
CRIT MINED116 Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger .github/workflows/docs-site.yml:45
HIGH MINED021 [MINED021] Path Traversal Os Join: os.path.join(user_dir, filename) where filename can co… scripts/trace-project.sh:162
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). scripts/delete_old_version_docs.sh:82
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … compiler/src/main/kotlin/dev/zacsweers/…:162
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … compiler/src/main/kotlin/dev/zacsweers/…:265
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … compiler/src/main/kotlin/dev/zacsweers/…:70
HIGH MINED029 [MINED029] Kotlin Null Bang: x!! throws NullPointerException if x is null. Bypasses Kotli… compiler/src/main/kotlin/dev/zacsweers/…:159
HIGH MINED029 [MINED029] Kotlin Null Bang: x!! throws NullPointerException if x is null. Bypasses Kotli… compiler/build.gradle.kts:188
HIGH MINED029 [MINED029] Kotlin Null Bang: x!! throws NullPointerException if x is null. Bypasses Kotli… build.gradle.kts:44
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… ide-integration-tests/download-ides.sh:234
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… build-logic/src/main/kotlin/metro.base.…:179
HIGH MINED134 Binary file `samples/gradle/wrapper/gradle-wrapper.jar` committed in source repo samples/gradle/wrapper/gradle-wrapper.j…:1
HIGH MINED134 Binary file `benchmark/gradle/wrapper/gradle-wrapper.jar` committed in source repo benchmark/gradle/wrapper/gradle-wrapper…:1
HIGH MINED134 Binary file `gradle/wrapper/gradle-wrapper.jar` committed in source repo gradle/wrapper/gradle-wrapper.jar:1
HIGH MINED134 Binary file `ide-integration-tests/test-project/gradle/wrapper/gradle-wrapper.jar` commit… ide-integration-tests/test-project/grad…:1
HIGH MINED134 Binary file `ide-integration-tests/gradle/wrapper/gradle-wrapper.jar` committed in source… ide-integration-tests/gradle/wrapper/gr…:1
HIGH MINED115 Action `mikepenz/action-junit-report` pinned to mutable ref `@v6` .github/workflows/ci.yml:197
HIGH MINED115 Action `actions/upload-artifact` pinned to mutable ref `@v7` .github/workflows/ci.yml:190
HIGH MINED115 Action `mikepenz/action-junit-report` pinned to mutable ref `@v6` .github/workflows/ci.yml:159
HIGH MINED115 Action `actions/upload-artifact` pinned to mutable ref `@v7` .github/workflows/ci.yml:152
HIGH MINED115 Action `mikepenz/action-junit-report` pinned to mutable ref `@v6` .github/workflows/ci.yml:105
HIGH MINED115 Action `actions/upload-artifact` pinned to mutable ref `@v7` .github/workflows/ci.yml:98
HIGH MINED115 Action `actions/cache` pinned to mutable ref `@v5` .github/workflows/ci.yml:34
HIGH MINED115 Action `actions/setup-java` pinned to mutable ref `@v5` .github/workflows/ci.yml:28
HIGH MINED115 Action `actions/upload-artifact` pinned to mutable ref `@v7` .github/workflows/benchmarks.yml:645
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/benchmarks.yml:604
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/benchmarks.yml:591
HIGH MINED115 Action `actions/upload-artifact` pinned to mutable ref `@v7` .github/workflows/benchmarks.yml:553
HIGH MINED115 Action `actions/cache` pinned to mutable ref `@v5` .github/workflows/benchmarks.yml:508
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/benchmarks.yml:460
HIGH MINED115 Action `actions/upload-artifact` pinned to mutable ref `@v7` .github/workflows/benchmarks.yml:421
HIGH MINED115 Action `actions/upload-artifact` pinned to mutable ref `@v7` .github/workflows/benchmarks.yml:414
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/benchmarks.yml:330
HIGH MINED115 Action `actions/upload-artifact` pinned to mutable ref `@v7` .github/workflows/benchmarks.yml:293
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/benchmarks.yml:212
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/benchmarks.yml:100
HIGH MINED115 Action `actions/setup-python` pinned to mutable ref `@v6` .github/workflows/docs-site.yml:170
HIGH MINED115 Action `actions/setup-python` pinned to mutable ref `@v6` .github/workflows/docs-site.yml:55
HIGH MINED115 Action `peter-evans/create-pull-request` pinned to mutable ref `@v8` .github/workflows/update-ide-mappings.y…:33
HIGH MINED115 Action `actions/setup-python` pinned to mutable ref `@v6` .github/workflows/update-ide-mappings.y…:19
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/update-ide-mappings.y…:18
HIGH GHSA-ph9p-34f9-6g65 tmp: GHSA-ph9p-34f9-6g65 kotlin-js-store/package-lock.json
HIGH GHSA-5c6j-r48x-rmvq serialize-javascript: GHSA-5c6j-r48x-rmvq kotlin-js-store/package-lock.json
MED SEC123 [SEC123] Production stack trace / debug output exposed: Debug mode left on in production … gradle-plugin/src/functionalTest/kotlin…:22
MED MINED111 Bare except continues silently compiler-compat/fetch-all-ide-kotlin-ve…:116
MED MINED111 Bare except continues silently compiler-compat/fetch-all-ide-kotlin-ve…:100
MED GHSA-58qx-3vcg-4xpx ws: GHSA-58qx-3vcg-4xpx kotlin-js-store/package-lock.json
MED GHSA-79cf-xcqc-c78w webpack-dev-server: GHSA-79cf-xcqc-c78w kotlin-js-store/package-lock.json
MED GHSA-w5hq-g745-h8pq uuid: GHSA-w5hq-g745-h8pq kotlin-js-store/package-lock.json
MED GHSA-qj8w-gfj5-8c6v serialize-javascript: GHSA-qj8w-gfj5-8c6v kotlin-js-store/package-lock.json
MED GHSA-q8mj-m7cp-5q26 qs: GHSA-q8mj-m7cp-5q26 kotlin-js-store/package-lock.json
LOW GHSA-8fgc-7cc6-rx7x webpack: GHSA-8fgc-7cc6-rx7x kotlin-js-store/package-lock.json
LOW GHSA-38r7-794h-5758 webpack: GHSA-38r7-794h-5758 kotlin-js-store/package-lock.json
LOW GHSA-73rr-hh4g-fpgx diff: GHSA-73rr-hh4g-fpgx kotlin-js-store/package-lock.json
LOW AIC003 Duplicated implementation block across source files gradle-plugin/src/functionalTest/kotlin…:5
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator2420/kotlin…:4
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator2420/kotlin…:1
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator240/kotlin/…:4
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator240/kotlin/…:13
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator240/kotlin/…:4
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator240/kotlin/…:1
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator2320/kotlin…:4
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator2320/kotlin…:4
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator2320/kotlin…:1
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator230/kotlin/…:4
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator230/kotlin/…:14
LOW AIC003 Duplicated implementation block across source files compiler-tests/src/generator230/kotlin/…:4
LOW AIC003 Duplicated implementation block across source files compiler-compat/k240_dev_2124/src/main/…:43
LOW AIC003 Duplicated implementation block across source files compiler-compat/k240_dev_2124/src/main/…:5
LOW AIC003 Duplicated implementation block across source files compiler-compat/k240_dev_2124/src/main/…:25
LOW AIC003 Duplicated implementation block across source files compiler-compat/k240_dev_2124/src/main/…:24
LOW AIC003 Duplicated implementation block across source files compiler-compat/k240/src/main/kotlin/de…:46
LOW AIC003 Duplicated implementation block across source files compiler-compat/k240/src/main/kotlin/de…:51
LOW AIC003 Duplicated implementation block across source files compiler-compat/k2320/src/main/kotlin/d…:57
INFO MINED086 [MINED086] Kotlin Runtime Exception: Throwing bare RuntimeException loses type info. samples/android-app/src/main/kotlin/dev…:27
INFO MINED069 [MINED069] Debug True Prod: Django/Flask DEBUG=True or app.debug=True in non-test files. gradle-plugin/src/functionalTest/kotlin…:22
Reset to top 5 92 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `ZacSweers/metro`

**Score: 75/100 (B)**  ·  92 findings  ·  scanned 2026-06-05 17:40 UTC  ·  166,458 LOC

| Severity | Count |
|---|---|
| CRITICAL | 17 |
| HIGH | 42 |
| MEDIUM | 8 |
| LOW | 23 |

📊 [Full filterable report](https://repobility.com/scan/d962c11a-6a7b-4866-89f9-49feb303abec/)  ·  ![scorecard](https://repobility.com/scan/d962c11a-6a7b-4866-89f9-49feb303abec/report.png?v=1780681230-s2)

### Top findings

1. **CRITICAL** `SEC084` — JS: require() with non-literal
   `compiler/src/main/kotlin/dev/zacsweers/metro/compiler/NameAllocator.kt:244`
2. **CRITICAL** `SEC084` — JS: require() with non-literal
   `compiler/src/main/kotlin/dev/zacsweers/metro/compiler/ClassIdUtils.kt:58`
3. **CRITICAL** `SEC084` — JS: require() with non-literal
   `compiler/src/main/kotlin/dev/zacsweers/metro/compiler/BitField.kt:16`
4. **CRITICAL** `MINED116` — Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger
   `.github/workflows/benchmark-regression.yml:367` · ✓ Repobility
5. **CRITICAL** `MINED116` — Workflow uses `secrets.GRADLE_ENCRYPTION_KEY` on a `pull_request` trigger
   `.github/workflows/benchmark-regression.yml:51` · ✓ Repobility

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/d962c11a-6a7b-4866-89f9-49feb303abec/_
Megaproject â high spam risk
Could not determine 'ZacSweers/metro' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
42/95 findings (44%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.