mirror of
https://github.com/anchore/grype
synced 2024-11-10 14:44:12 +00:00
chore: use latest yardstick (#1438)
Include changes to gate.py to correctly guess that local builds of grype are considered the changed version, not the latest release. Signed-off-by: Will Murphy <will.murphy@anchore.com>
This commit is contained in:
parent
94d58fba3c
commit
1c084c44b0
3 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
main()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue