For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dart - Pub

See the Dart Pub files supported by Fortify SCA and their scan precedence.

Fortify SCA tracks Dart dependencies managed with Pub through:

  • pubspec.yaml, the package manifest

  • pubspec.lock, the primary lock-file dependency source

  • pubspec.deps.json, the complete resolved dependency graph

Pub

Fortify SCA can scan pubspec.lock as a standalone file. It can also scan pubspec.yaml independently during manual or stateless uploads. When both files are present, Fortify SCA scans them together. This produces a flat dependency list without root or scope data.

Generate pubspec.deps.json before scanning to retain root and scope data:

dart pub deps --json > pubspec.deps.json

Commit pubspec.deps.json with your project files. Fortify SCA uses it instead of pubspec.lock when both files are present.

The generated graph includes direct, development, and transitive dependencies. It preserves parent-child relationships for dependency tracking, validation, and SBOM generation.

Supported file formats and features

Package manager
Supported file formats
Root dependencies
Indirect dependencies
Dependency trees
Security scanning
License scanning
Root fix
Pull Request
Reachability Analysis
High Performance Scan

Pub

pubspec.yaml

Yes

Pub

pubspec.lock

Yes

Pub

pubspec.deps.json

Yes*

* This is a native lock file format. Native lock file formats are the fastest formats to scan.

Last updated

Was this helpful?