Skip to content

Commit 85e48ab

Browse files
committed
Update paths around SBOM generation
1 parent 466f2c6 commit 85e48ab

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/actions/shared-steps/action.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -517,12 +517,8 @@ runs:
517517
shell: bash
518518
run: |
519519
. ./.venv-sbom/bin/activate
520-
mkdir -p sbom
521-
shopt -s nullglob
522-
for f in *.sbom-data.json; do
523-
echo "Generating SBOM document with $f"
524-
base=$(basename "$f" .json)
525-
python3 sbom-tools/sbom_generator.py "${base}" "$f" "${base}.sbom.spdx.json"
520+
echo "Generating SBOM document of ${{ env.IMAGE_FILE }}"
521+
python3 sbom-tools/sbom_generator.py "${{ env.IMAGE_NAME }}" "${{ env.IMAGE_FILE }}.sbom-data.json" "${{ env.IMAGE_FILE }}.sbom.spdx.json"
526522
done
527523
528524
# - name: Setup tmate session

0 commit comments

Comments
 (0)