Skip to content

Commit

Permalink
fix - config only option used with remote repo scan generates panic (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
patilpankaj212 authored Jul 26, 2021
1 parent 485d577 commit d1d21fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (s *ScanOptions) Run() error {
}

// set the ResourcePath to remoteURL if remote directory is scanned.
if s.remoteURL != "" {
if !s.configOnly && s.remoteURL != "" {
results.Violations.ViolationStore.Summary.ResourcePath = s.remoteURL
}

Expand Down

0 comments on commit d1d21fc

Please sign in to comment.