Dart - Pub
See the Dart Pub files supported by Fortify SCA and their scan precedence.
Last updated
Was this helpful?
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
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.jsonCommit 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.
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?
Was this helpful?

