Skip to content

Commit

Permalink
fix: keep project-level config backwards-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
sacha-c committed Dec 9, 2024
1 parent eb19061 commit 23bf1ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/patrol/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ func getConfiguration(filename string) (config scanner.ProjectConfig, found bool
log.Warn().Strs("keys", keys).Msg("Found undecoded keys in project configuration")
}

config.ReportToSlackChannel = config.SlackChannel

return config, true, nil
}
1 change: 1 addition & 0 deletions internal/scanner/vulnscanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type AcknowledgedVuln struct {

type ProjectConfig struct {
ReportToSlackChannel string `toml:"report-to-slack-channel"`
SlackChannel string `toml:"slack-channel"` // TODO #27: Break in v1.0. Kept for backwards-compatibility
Acknowledged []AcknowledgedVuln `toml:"acknowledged"`
}

Expand Down

0 comments on commit 23bf1ad

Please sign in to comment.