Skip to content

Commit e9bc7e5

Browse files
committed
Document lockfile-less SCA scanning for package.json and pyproject.toml
1 parent 5c8eca7 commit e9bc7e5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • content/en/security/code_security/software_composition_analysis/setup_static

content/en/security/code_security/software_composition_analysis/setup_static/_index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,23 @@ Datadog SCA scans libraries in the following languages using dependency manifest
4343

4444
**Note:** If both a `packages.lock.json` and a `.csproj` file are present, the `packages.lock.json` takes precedence and provides more precise version resolution.
4545

46+
## Lockfile-less scanning
47+
48+
When a repository does not contain a supported lockfile, Datadog SCA can scan manifest files directly to identify dependencies.
49+
50+
| Language | Package Manager | File |
51+
|----------|------------------------|------------------|
52+
| Node.js | npm, yarn, pnpm, Bun | `package.json` |
53+
| Python | Poetry, PDM, UV, pip | `pyproject.toml` |
54+
55+
**Supported sections:**
56+
- `package.json`: `dependencies`, `devDependencies`, and `optionalDependencies`
57+
- `pyproject.toml`: PEP 621 `dependencies` and `optional-dependencies`, PEP 735 `dependency-groups`, and Poetry dependency sections
58+
59+
<div class="alert alert-info">
60+
Because manifests declare version ranges (such as <code>^2.3.4</code> or <code>&gt;=1.0,&lt;2</code>) rather than pinned versions, Datadog resolves each range to a published version. Results may differ from what a package manager would install. Where a lockfile is available, it takes precedence and provides more precise version resolution.
61+
</div>
62+
4663
## Select where to run static SCA scans
4764
By default, scans run when you commit changes that update supported dependency manifests or lockfiles in an enabled repository. You can also run SCA in your CI pipelines; CI jobs are supported for `push` events.
4865

0 commit comments

Comments
 (0)