fix(security): remediate CVE vulnerabilities#186
Conversation
- Update Go version to 1.25.8 (fixes CVE-2026-25679, CVE-2026-27142, CVE-2026-27139) - Update golangci-lint to v2.11.3 for Go 1.25.x compatibility - Add .golangci.yml with golangci-lint v2 schema Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Build Failure AnalysisCheck: lint SummaryThe lint check failed because Root CauseThe CI workflow uses Error DetailsRecommendationUpdate the CI workflow to use This analysis was generated by the build-failure-analyze skill. |
- Update golangci-lint-action from v6 to v7 for golangci-lint v2 support Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Build Failure AnalysisCheck: lint SummaryThe lint check failed because Root CauseThe golangci-lint v2 configuration schema has changed from v1. Several properties in the current
Error DetailsRecommendationUpdate This analysis was generated by the build-failure-analyze skill. |
- Remove invalid output.formats section (colored-line-number not allowed) - Remove deprecated linters.settings.govet.check-shadowing property - Remove invalid issues section (max-per-linter, max-same-issues, new not allowed) Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
In golangci-lint v2, the 'gosimple' linter has been merged into 'staticcheck' and is no longer a standalone linter. Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
🔧 Build Failure Fix Applied (Workflow Run 23163292891)Fixed the lint check failure caused by unknown linter Root CauseIn golangci-lint v2, the Fix AppliedRemoved Commit
|
Build Failure AnalysisCheck: lint SummaryThe lint check failed with 2 issues: a goimports formatting error in Root Cause
Error DetailsRecommendationA code fix is required:
This analysis was generated by the build-failure-analyze skill. |
- Fix goimports formatting in cronjob_test.go - Simplify embedded field selector in cronjob.go (staticcheck QF1008) Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Build Failure AnalysisCheck: lint SummaryThe lint check failed with a typecheck error in Root CauseThe Error DetailsRecommendationA code fix is required. Change: cronJob.Status.LastSuccessfulTime.Equal(cronJob.Status.LastScheduleTime.Time)to: cronJob.Status.LastSuccessfulTime.Equal(cronJob.Status.LastScheduleTime)This analysis was generated by the build-failure-analyze skill. |
Pass *metav1.Time pointer to Equal method instead of time.Time value. Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
The main branch does not have an explicit .golangci.yml configuration, so we remove it from the release branch as well. Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Summary
This PR fixes CVE vulnerabilities identified by security scanning.
Vulnerabilities Fixed
Changes Made
go.modGO_VERSIONfrom1.24.13to1.25.8in.github/workflows/ci.ymlGOLANGCI_VERSIONfromv1.64.8tov2.11.3in.github/workflows/ci.yml.golangci.ymlwith golangci-lint v2 schema for Go 1.25.x compatibilityReferences
Verification
cve-scanskill after fixes