mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-02-08 01:10:12 +08:00
7b74bd8bd8
Co-authored-by: Fabio Niephaus <fabio.niephaus@oracle.com>
19 lines
498 B
Bash
19 lines
498 B
Bash
#!/bin/bash
|
|
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
required_patterns=(
|
|
'"pkg:maven/org.json/json@20241224"'
|
|
'"main-test-app"'
|
|
'"svm"'
|
|
'"nativeimage"'
|
|
)
|
|
|
|
for pattern in "${required_patterns[@]}"; do
|
|
echo "Checking for $pattern"
|
|
if ! grep -q "$pattern" "$script_dir/target/main-test-app.sbom.json"; then
|
|
echo "Pattern not found: $pattern"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
echo "SBOM was successfully generated and contained the expected components" |