Skip to content

Commit

Permalink
feat: change sed target
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
  • Loading branch information
spiffcs committed Jun 24, 2024
1 parent ac55fb3 commit 5719f66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/update-quality-gate-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion test/quality/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ VULNERABILITY_LABELS = ./vulnerability-labels
RESULT_SET = pr_vs_latest_via_sbom

# update periodically with values from "grype db list"
TEST_DB_URL = https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-06-22T01:29:02Z_1719030057.tar.gz
TEST_DB_URL = https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-06-24T01:29:58Z_1719202889.tar.gz
TEST_DB = db.tar.gz
LISTING_FILE = https://toolbox-data.anchore.io/grype/databases/listing.json

Expand Down

0 comments on commit 5719f66

Please sign in to comment.