diff --git a/test/quality/.yardstick.yaml b/test/quality/.yardstick.yaml index 6575057dad5..4cff33baead 100644 --- a/test/quality/.yardstick.yaml +++ b/test/quality/.yardstick.yaml @@ -99,6 +99,8 @@ result-sets: - name: grype version: git:current-commit + # for local build of grype, use for example: + # version: path:../../ takes: SBOM - name: grype diff --git a/test/quality/gate.py b/test/quality/gate.py index b786831513f..b0c8c1de32c 100755 --- a/test/quality/gate.py +++ b/test/quality/gate.py @@ -71,6 +71,13 @@ def guess_tool_orientation(tools: list[str]): continue current_tool = tool + if latest_release_tool is None: + for tool in tools: + if "@path:" in tool: + current_tool = tool + continue + latest_release_tool = tool + if latest_release_tool is None: # "latest" value isn't accessible, so we do a best guess at which version is latest latest_release_tool, current_tool = sorted(tools) @@ -334,4 +341,4 @@ def setup_logging(verbosity: int): ) if __name__ == '__main__': - main() \ No newline at end of file + main() diff --git a/test/quality/requirements.txt b/test/quality/requirements.txt index 37775e3b3cf..63d706f57b5 100644 --- a/test/quality/requirements.txt +++ b/test/quality/requirements.txt @@ -1,3 +1,3 @@ -git+https://github.com/anchore/yardstick@v0.7.0 +git+https://github.com/anchore/yardstick@v0.8.0 # ../../../yardstick tabulate==0.9.0