You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: removed warnings and add --dependency-tree option (#4)
* fix: update pre-commit stage name from deprecated 'commit' to 'pre-commit'
The pre-commit framework deprecated the 'commit' stage name in version 3.2.0,
replacing it with 'pre-commit' to better align with actual git hook names.
This change eliminates the deprecation warning and ensures compatibility with
future versions of the pre-commit framework. No functional changes - the hook
runs at the exact same point in the git workflow.
* feat: add --dependency-tree flag to display vulnerability dependency tree
Add optional --dependency-tree argument that allows users to visualize
the dependency tree showing how vulnerabilities are introduced through
the dependency chain. This flag is disabled by default and can be enabled
when users need more detailed context about vulnerability sources.
Changes:
- Add --dependency-tree argument to parse_arguments() in trivy_scan.py
- Pass --dependency-tree flag to Trivy command when enabled
- Add comprehensive tests for the new flag
- Update README.md with configuration documentation and usage example
- All tests pass (28/28) with 94% code coverage
* add to .gitignore
Signed-off-by: Mehdi Bechiri <cebidhem@pm.me>
---------
Signed-off-by: Mehdi Bechiri <cebidhem@pm.me>
0 commit comments