← Back to scan
File as GitHub Issue repo: google/dawn

Push this scan report to google/dawn

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

JS: require() with non-literal

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 MINED107 [MINED107] Missing import: `enum` used but not imported: The file uses `enum.something(..… generator/opengl_loader_generator.py:139
CRIT MINED107 [MINED107] Missing import: `struct` used but not imported: The file uses `struct.somethin… generator/dawn_json_generator.py:544
CRIT MINED107 [MINED107] Missing import: `enum` used but not imported: The file uses `enum.something(..… generator/dawn_json_generator.py:1140
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… src/tint/lang/wgsl/ast/requires_test.cc:38
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… src/dawn/node/worker-test.mjs:11
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… src/dawn/node/test.mjs:14
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… src/tint/cmd/fuzz/common/runner.h:60
HIGH MINED011 [MINED011] Scala Get On Option: Option.get throws NoSuchElementException on None. Use get… src/dawn/native/metal/ComputePipelineMT…:61
HIGH MINED011 [MINED011] Scala Get On Option: Option.get throws NoSuchElementException on None. Use get… src/dawn/native/metal/CommandRecordingC…:46
HIGH MINED011 [MINED011] Scala Get On Option: Option.get throws NoSuchElementException on None. Use get… src/dawn/native/metal/BufferMTL.mm:193
HIGH SEC103 [SEC103] LDAP injection — non-constant search filter: User input concatenated into an LDA… scripts/perf_test_runner.py:134
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). scripts/merge_scripts/fuzz_corpora_comm…:87
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/dawn/native/RenderBundleEncoder.cpp:133
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/dawn/common/Sha3.cpp:330
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … scripts/extract.py:109
HIGH SEC114 [SEC114] path.join / Path() on user-controlled segment without containment check: filepat… go_presubmit_support.py:32
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… generator/extract_json.py:53
HIGH COMP001 [COMP001] High cognitive complexity: Function `__init__` has cognitive complexity 28 (Son… generator/dawn_gpu_info_generator.py:152
HIGH MINED115 [MINED115] Action `actions/github-script` pinned to mutable ref `@v6`: `uses: actions/git… .github/workflows/pr-watcher.yml:18
HIGH MINED115 [MINED115] Action `softprops/action-gh-release` pinned to mutable ref `@v2`: `uses: softp… .github/workflows/release.yml:51
HIGH MINED115 [MINED115] Action `actions/download-artifact` pinned to mutable ref `@v4`: `uses: actions… .github/workflows/release.yml:41
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/release.yml:24
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/release.yml:18
HIGH MINED126 [MINED126] Workflow container/services image `dockcross/manylinux_2_28-x64:latest` unpinn… .github/workflows/ci.yml:68
HIGH MINED115 [MINED115] Action `actions/setup-go` pinned to mutable ref `@v4`: `uses: actions/setup-go… .github/workflows/ci.yml:360
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/ci.yml:357
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/ci.yml:348
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/ci.yml:342
HIGH MINED115 [MINED115] Action `actions/download-artifact` pinned to mutable ref `@v4`: `uses: actions… .github/workflows/ci.yml:303
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/ci.yml:300
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/ci.yml:290
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/ci.yml:269
HIGH MINED115 [MINED115] Action `maxim-lobanov/setup-xcode` pinned to mutable ref `@v1`: `uses: maxim-l… .github/workflows/ci.yml:266
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/ci.yml:226
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/ci.yml:213
HIGH MINED115 [MINED115] Action `nttld/setup-ndk` pinned to mutable ref `@v1`: `uses: nttld/setup-ndk@v… .github/workflows/ci.yml:191
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/ci.yml:185
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/ci.yml:146
HIGH MINED115 [MINED115] Action `mozilla-actions/sccache-action` pinned to mutable ref `@v0.0.5`: `uses… .github/workflows/ci.yml:125
HIGH MINED115 [MINED115] Action `fbactions/setup-winsdk` pinned to mutable ref `@v2`: `uses: fbactions/… .github/workflows/ci.yml:105
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/ci.yml:96
HIGH MINED115 [MINED115] Action `actions/github-script` pinned to mutable ref `@v6`: `uses: actions/git… .github/workflows/pr-manager.yml:52
HIGH MINED115 [MINED115] Action `marocchino/sticky-pull-request-comment` pinned to mutable ref `@v2`: `… .github/workflows/pr-manager.yml:44
HIGH MINED115 [MINED115] Action `marocchino/sticky-pull-request-comment` pinned to mutable ref `@v2`: `… .github/workflows/pr-manager.yml:24
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… src/tint/cmd/bench/generate_benchmark_i…:173
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… src/emdawnwebgpu/concat.py:13
MED MINED109 [MINED109] Mutable default argument in `get_results` (list): `def get_results(... = []/{}… scripts/perf_test_runner.py:125
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… generator/dawn_version_generator.py:164
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… generator/dawn_version_generator.py:50
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … src/tint/lang/core/ir/evaluator.h:86
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … src/tint/cmd/fuzz/common/runner.h:60
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … src/dawn/common/TypeTraits.h:51
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… generator/dawn_version_generator.py:161
MED COMP001 [COMP001] High cognitive complexity: Function `compute_params` has cognitive complexity 1… generator/opengl_loader_generator.py:129
MED COMP001 [COMP001] High cognitive complexity: Function `__init__` has cognitive complexity 16 (Son… generator/dawn_gpu_info_generator.py:104
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… src/dawn/common/DynamicLib.cpp:101
LOW AIC003 Duplicated implementation block across source files src/dawn/native/d3d12/PhysicalDeviceD3D…:15
LOW AIC003 Duplicated implementation block across source files src/dawn/native/d3d12/PhysicalDeviceD3D…:553
LOW AIC003 Duplicated implementation block across source files src/dawn/native/d3d12/Forward.h:2
LOW AIC003 Duplicated implementation block across source files src/dawn/native/d3d12/DeviceD3D12.h:96
LOW AIC003 Duplicated implementation block across source files src/dawn/native/d3d12/DeviceD3D12.cpp:241
LOW AIC003 Duplicated implementation block across source files src/dawn/native/d3d12/ComputePipelineD3…:8
LOW AIC003 Duplicated implementation block across source files src/dawn/native/RenderEncoderBase.cpp:528
LOW AIC003 Duplicated implementation block across source files src/dawn/glfw/utils_emscripten.cpp:1
LOW AIC003 Duplicated implementation block across source files scripts/merge_scripts/generate_wire_tra…:7
LOW AIC007 Generated build artifact directory is present at repository root build:1
INFO MINED048 [MINED048] Php Error Suppress: @function() suppresses errors silently. Hides real issues. src/tint/lang/msl/validate/validate_met…:46
INFO MINED048 [MINED048] Php Error Suppress: @function() suppresses errors silently. Hides real issues. src/dawn/native/metal/QueueMTL.mm:86
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … src/dawn/native/metal/PipelineLayoutMTL…:60
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… src/dawn/native/BuddyAllocator.cpp:41
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… src/dawn/native/BindGroupLayout.cpp:60
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… src/dawn/native/AsyncTask.h:126
INFO MINED063 [MINED063] Toctou Os Path Exists: if os.path.exists(p): open(p) — file can be replaced/de… scripts/extract.py:113
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… scripts/extract.py:73
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… generator/extract_json.py:54
Reset to top 5 75 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `google/dawn`

**Score: 91/100 (A-)**  ·  100 findings  ·  scanned 2026-06-06 00:01 UTC  ·  496,230 LOC

| Severity | Count |
|---|---|
| CRITICAL | 6 |
| HIGH | 40 |
| MEDIUM | 9 |
| LOW | 11 |

📊 [Full filterable report](https://repobility.com/scan/cc9df8dd-3a0b-441b-8e91-0971d803a2aa/)  ·  ![scorecard](https://repobility.com/scan/cc9df8dd-3a0b-441b-8e91-0971d803a2aa/report.png?v=1780704099-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `enum` used but not imported
   `generator/opengl_loader_generator.py:139` · ✓ Repobility
2. **CRITICAL** `MINED107` — Missing import: `struct` used but not imported
   `generator/dawn_json_generator.py:544` · ✓ Repobility
3. **CRITICAL** `MINED107` — Missing import: `enum` used but not imported
   `generator/dawn_json_generator.py:1140` · ✓ Repobility
4. **CRITICAL** `SEC084` — JS: require() with non-literal
   `src/tint/lang/wgsl/ast/requires_test.cc:38`
5. **CRITICAL** `SEC084` — JS: require() with non-literal
   `src/dawn/node/worker-test.mjs:11`

---

**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/cc9df8dd-3a0b-441b-8e91-0971d803a2aa/_
Already filed
'google' is on the known-megaproject org list. These projects use auto-triage bots and established security disclosure channels. Unsolicited automated issues from Repobility would be perceived as AI-generated spam. For security findings, follow the project's SECURITY.md policy. For non-security findings, open a focused PR or community discussion instead.
Megaproject â high spam risk
Could not determine 'google/dawn' 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
53/104 findings (51%) 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.