From 565df40fa25fa14e4422583e9145b733915bb5aa Mon Sep 17 00:00:00 2001 From: Gareth Rushgrove Date: Tue, 15 Sep 2020 08:46:35 +0100 Subject: [PATCH] feat: Add platform details to help for snyk container The snyk container CLI now supports passing an explicit platform value. This will then test the image with that platform, rather than just the default (probably amd64). --- help/container.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/help/container.txt b/help/container.txt index 8cca2be051..e6c57b4c26 100644 --- a/help/container.txt +++ b/help/container.txt @@ -16,6 +16,9 @@ Options: --file= ......................... Include the path to the image's Dockerfile for more detailed advice. -h, --help --json + --platform= ..................... For multi-architecture images, specify the platform to test. Options are: + [linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, + linux/386, linux/arm/v7 orlinux/arm/v6] --print-deps ............................ Print the dependency tree before sending it for analysis. --project-name= ................. Specify a custom Snyk project name. --policy-path= .................... Manually pass a path to a snyk policy file. @@ -24,6 +27,7 @@ Options: Examples: $ snyk container test alpine + $ snyk container test --platform=linux/arm64 debian $ snyk container monitor alpine $ snyk container test docker-archive:archive.tar $ snyk container test oci-archive:archive.tar