Skip to content

Commit

Permalink
fix: always force a diff scan (#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet authored Oct 16, 2023
1 parent 9043f34 commit e2320cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/commands/artifact/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ func NewRunner(
log.Debug().Msgf("creating report %s", path)

if _, err := os.Stat(completedPath); err == nil {
if !scanSettings.Scan.Force {
if !scanSettings.Scan.Force && scanSettings.Scan.DiffBaseBranch == "" {
// force is not set, and we are not running a diff scan
r.reuseDetection = true
log.Debug().Msgf("reuse detection for %s", path)
r.reportPath = completedPath
Expand Down

0 comments on commit e2320cb

Please sign in to comment.