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 <[email protected]>
  • Loading branch information
naveensrinivasan committed Mar 31, 2024
1 parent 1a7d0d9 commit f523bc9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tasks/scanvulnerability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ 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;
for flavor in upstream registry1; 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 +23,4 @@ tasks:
done
' sh {} +
echo "All SBOM files processed and analyzed for vulnerabilities."

Check failure on line 26 in tasks/scanvulnerability.yaml

View workflow job for this annotation

GitHub Actions / Lint

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

0 comments on commit f523bc9

Please sign in to comment.