Commit caade06
feat(oci): normalize Docker Hub refs and use tree-sitter for Dockerfile parsing
Normalize Docker Hub image references in PURL generation so all FROM
formats (node:22, docker.io/node:22, docker.io/library/node:22) produce
the same repository_url=docker.io/node qualifier, matching the Hummingbird
hardened image index. Migrate Dockerfile FROM parsing from regex to
tree-sitter-containerfile for robust AST-based extraction. Rename
TRUSTIFY_DA_RECOMMENDATIONS_ENABLED to TRUSTIFY_DA_RECOMMEND and use
getCustom() for consistent env/option lookup. Support suffixed Dockerfile
variants (e.g. Dockerfile.dev).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent dd053df commit caade06
10 files changed
Lines changed: 322 additions & 218 deletions
File tree
- src
- oci_image
- providers
- test/providers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
698 | | - | |
| 698 | + | |
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
| |||
0 commit comments