Skip to content
Closed
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: 2 additions & 2 deletions pkg/workflow/semver.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func extractMajorVersion(version string) int {
parts := strings.Split(v, ".")
if len(parts) > 0 {
var major int
// #nosec G104 - Intentionally ignoring Sscanf error as function defaults to 0 for non-numeric version parts
_, _ = fmt.Sscanf(parts[0], "%d", &major)
// Intentionally ignoring Sscanf error as function defaults to 0 for non-numeric version parts
_, _ = fmt.Sscanf(parts[0], "%d", &major) // #nosec G104
return major
}

Expand Down