Skip to content

Commit

Permalink
included for registry1 and upstream
Browse files Browse the repository at this point in the history
Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
  • Loading branch information
naveensrinivasan committed Mar 31, 2024
1 parent 1a7d0d9 commit 709caec
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tasks/scanvulnerability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ tasks:
description: Create a UDS package with configurable flavor and extract the SBOM from all created packages and analyze for vulnerabilities
actions:
- cmd: |
uds zarf package create . --flavor=upstream --confirm --no-progress -o sbom
for file in sbom/*.zst; do
uds zarf package inspect "$file" --sbom-out ./sbom --no-progress;
flavors=("upstream" "registry1")
for flavor in "${flavors[@]}"; do
uds zarf package create . --flavor="$flavor" --confirm --no-progress -o sbom
for file in sbom/*.zst; do
uds zarf package inspect "$file" --sbom-out ./sbom --no-progress;
done
done
if ! command -v grype &> /dev/null; then
echo "Grype could not be found, installing..."
Expand All @@ -21,3 +24,4 @@ tasks:
done
' sh {} +
echo "All SBOM files processed and analyzed for vulnerabilities."

Check failure on line 27 in tasks/scanvulnerability.yaml

View workflow job for this annotation

GitHub Actions / Lint

27:1 [empty-lines] too many blank lines (1 > 0)

0 comments on commit 709caec

Please sign in to comment.