Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions internal/patrol/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ func getConfiguration(filename string) (config scanner.ProjectConfig, found bool
log.Warn().Strs("keys", keys).Msg("Found undecoded keys in project configuration")
}

if config.SlackChannel != "" {
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
Loading