diff --git a/.github/scripts/update-quality-gate-db.sh b/.github/scripts/update-quality-gate-db.sh index 258ca9e9c41..150cb3ff5fa 100755 --- a/.github/scripts/update-quality-gate-db.sh +++ b/.github/scripts/update-quality-gate-db.sh @@ -1,7 +1,7 @@ #!/bin/bash # Run your command and capture the output -output=$(go run ../../cmd/grype/main.go db list) +output=$(go run ./cmd/grype/main.go db list) # Extract the first instance of URL using grep, cut, and sed to trim leading whitespace url=$(echo "$output" | grep -m 1 -o 'URL: .*' | cut -d' ' -f2- | sed 's/^[[:space:]]*//') @@ -10,4 +10,4 @@ url=$(echo "$output" | grep -m 1 -o 'URL: .*' | cut -d' ' -f2- | sed 's/^[[:spac escaped_url=$(printf '%s\n' "$url" | sed -e 's/[\/&]/\\&/g') # Replace TEST_DB_URL in specific Makefile using sed -sed -i '' -e "s|^TEST_DB_URL = .*|TEST_DB_URL = $escaped_url|" ../../test/quality/Makefile +sed -i '' -e "s|^TEST_DB_URL = .*|TEST_DB_URL = $escaped_url|" ./test/quality/Makefile