Skip to content

Commit

Permalink
dont change configure yet
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <[email protected]>
  • Loading branch information
willmurphyscode committed Nov 1, 2023
1 parent 7af4ee7 commit 6494605
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/quality/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,9 +499,11 @@ def _install_grype_db(input: str):
repo_url = f"https://github.com/{repo_user_and_name}"

if input == "latest":
latest_url = "https://github.com/anchore/grype-db/releases/latest"
logging.info(f"fetching latest release from {latest_url}")
version = requests.get(latest_url, headers={"Accept": "application/json"}).json().get("tag_name", "")
version = (
requests.get("https://github.com/anchore/grype-db/releases/latest", headers={"Accept": "application/json"})
.json()
.get("tag_name", "")
)
logging.info(f"latest released grype-db version is {version!r}")

elif is_semver:
Expand Down

0 comments on commit 6494605

Please sign in to comment.