Skip to content

update dependencies and go version#656

Merged
bosesuneha merged 4 commits intoAzure:mainfrom
bosesuneha:update-dependencies
Jan 5, 2026
Merged

update dependencies and go version#656
bosesuneha merged 4 commits intoAzure:mainfrom
bosesuneha:update-dependencies

Conversation

@bosesuneha
Copy link
Member

@bosesuneha bosesuneha commented Dec 19, 2025

Description

This pull request upgrades the project to Go 1.25 and updates several dependencies to their latest versions, including major libraries such as the Azure SDK, Helm, Kubernetes, and Open Policy Agent. It also improves error handling in the pkg/safeguards/helpers.go file by adding checks for a nil constraint client. These changes ensure compatibility with the latest version of tooling and libraries.

Dependency and environment upgrades:

  • Updated the Go version to 1.25 in the Dockerfile, go.mod, and all GitHub Actions workflow files to ensure the project builds and tests against the latest Go release. [1] [2] [3] [4] [5] [6] [7] [8]
  • Upgraded key dependencies in go.mod, including Azure SDK, Helm, Kubernetes libraries, Open Policy Agent, and many others, to their latest versions for improved features, security, and compatibility.

Code robustness and error handling:

  • Added nil checks for the constraint client in pkg/safeguards/helpers.go functions (loadConstraintTemplates, loadConstraints, loadManifestObjects, and getObjectViolations) to prevent potential runtime panics. [1] [2] [3] [4]
  • Updated the creation of the constraint client to explicitly set the enforcement point using the latest Open Policy Agent API. [1] [2]

Supersedes open Dependabot PRs for these packages.

Fixes # (issue)
Feature # (details)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Refactor

How Has This Been Tested?

Provide instructions so we can reproduce, and list any relevant details for your test configuration. Please mention if this is a breaking change which will impact consuming tool(s).

  • Unit Test:
  • E2E Test:
  • Other Test:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@bosesuneha bosesuneha enabled auto-merge (squash) December 19, 2025 22:31
Copy link
Collaborator

@davidgamero davidgamero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bosesuneha bosesuneha merged commit 6361f02 into Azure:main Jan 5, 2026
145 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants