Replace packages command with scan (#2446)

* replace packages command with scan

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add tests for packages alias

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* update comments with referenes to the packages command

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* rename valiadte args function

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

---------

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman
2024-01-04 16:56:57 +00:00
committed by GitHub
parent 7c67df397e
commit 4c20a74d2f
13 changed files with 335 additions and 281 deletions
+2 -2
View File
@@ -40,13 +40,13 @@ func TestSpdxValidationTooling(t *testing.T) {
}{
{
name: "spdx validation tooling tag value",
syftArgs: []string{"packages", "-o", "spdx"},
syftArgs: []string{"scan", "-o", "spdx"},
images: images,
env: env,
},
{
name: "spdx validation tooling json",
syftArgs: []string{"packages", "-o", "spdx-json"},
syftArgs: []string{"scan", "-o", "spdx-json"},
images: images,
env: env,
},