Skip to content

Commit

Permalink
fix: config secret scan fs mode (#1301)
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <hen.keinan@gmail.com>
  • Loading branch information
chen-keinan authored Jun 16, 2023
1 parent 1b69d4a commit 787f3f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/plugins/trivy/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -1638,6 +1638,7 @@ func (p *plugin) getFSScanningArgs(ctx trivyoperator.PluginContext, command Comm
return []string{}
}
scanners := Scanners(c)
imcs := p.imageConfigSecretScanner(c.Data)
skipUpdate := SkipDBUpdate(c)
args := []string{
"--cache-dir",
Expand All @@ -1651,6 +1652,9 @@ func (p *plugin) getFSScanningArgs(ctx trivyoperator.PluginContext, command Comm
"json",
"/",
}
if len(imcs) > 0 {
args = append(args, imcs...)
}
if mode == ClientServer {
args = append(args, "--server", trivyServerURL)
}
Expand Down

0 comments on commit 787f3f9

Please sign in to comment.