Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --tar flag to support docker scan of .tar files without docker engine installed #2451

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion utils/cliutils/commandsflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ const (
ExclusionsAudit = auditPrefix + exclusions
repoPath = "repo-path"
licenses = "licenses"
useTar = "tar"
vuln = "vuln"
ExtendedTable = "extended-table"
MinSeverity = "min-severity"
Expand Down Expand Up @@ -1380,6 +1381,10 @@ var flagsMap = map[string]cli.Flag{
Name: licenses,
Usage: "[Default: false] Set to true if you'd like to receive licenses from Xray scanning.` `",
},
useTar: cli.BoolFlag{
Name: useTar,
Usage: "[Default: false] In a docker scan use a tar file directly without saving an existing image` `",
guyshe-jfrog marked this conversation as resolved.
Show resolved Hide resolved
},
vuln: cli.BoolFlag{
Name: vuln,
Usage: "[Default: false] Set to true if you'd like to receive an additional view of all vulnerabilities, regardless of the policy configured in Xray. Ignored if provided 'format' is 'sarif'.` `",
Expand Down Expand Up @@ -1818,7 +1823,7 @@ var commandFlags = map[string][]string{
},
Docker: {
buildName, buildNumber, module, Project,
serverId, skipLogin, threads, detailedSummary, watches, repoPath, licenses, xrOutput, fail, ExtendedTable, BypassArchiveLimits, MinSeverity, FixableOnly,
serverId, skipLogin, threads, detailedSummary, watches, repoPath, licenses, useTar, xrOutput, fail, ExtendedTable, BypassArchiveLimits, MinSeverity, FixableOnly,
},
DockerPush: {
buildName, buildNumber, module, Project,
Expand Down
Loading