Skip to content

Commit 52c2e36

Browse files
bin: sbom diff on staged files
1 parent df8647d commit 52c2e36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/sbom/sbom.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ sbom_generate() {
728728

729729
sbom_diff() {
730730
local chart_name chart_version found_diff location
731-
mapfile -t diff_files < <(git diff --name-only | grep "helmfile.d/")
731+
mapfile -t diff_files < <(git diff --staged --name-only | grep "helmfile.d/")
732732
mapfile -t all_charts < <(sbom_get_charts "${SBOM_FILE}")
733733

734734
for chart in "${all_charts[@]}"; do

0 commit comments

Comments
 (0)