Skip to content

[CSPM] use text/template-less fork of opa #36634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025
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
1 change: 0 additions & 1 deletion LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,6 @@ core,github.com/open-policy-agent/opa/v1/ast/internal/tokens,Apache-2.0,Copyrigh
core,github.com/open-policy-agent/opa/v1/ast/json,Apache-2.0,Copyright 2016 The OPA Authors. All rights reserved.
core,github.com/open-policy-agent/opa/v1/ast/location,Apache-2.0,Copyright 2016 The OPA Authors. All rights reserved.
core,github.com/open-policy-agent/opa/v1/bundle,Apache-2.0,Copyright 2016 The OPA Authors. All rights reserved.
core,github.com/open-policy-agent/opa/v1/capabilities,Apache-2.0,Copyright 2016 The OPA Authors. All rights reserved.
core,github.com/open-policy-agent/opa/v1/config,Apache-2.0,Copyright 2016 The OPA Authors. All rights reserved.
core,github.com/open-policy-agent/opa/v1/format,Apache-2.0,Copyright 2016 The OPA Authors. All rights reserved.
core,github.com/open-policy-agent/opa/v1/hooks,Apache-2.0,Copyright 2016 The OPA Authors. All rights reserved.
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,9 @@ replace (
k8s.io/client-go => k8s.io/client-go v0.31.2
)

// Fork to remove some text/template usage, https://github.com/paulcacheux/opa/tree/lightweight
Copy link
Preview

Copilot AI May 9, 2025

Choose a reason for hiding this comment

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

Consider expanding the comment to briefly explain the rationale for the fork and any implications for future updates or compatibility.

Suggested change
// Fork to remove some text/template usage, https://github.com/paulcacheux/opa/tree/lightweight
// Fork to remove some text/template usage due to performance and maintainability concerns.
// This fork eliminates dependencies on text/template to simplify the codebase and improve runtime efficiency.
// Note: This fork may diverge from the upstream repository, making it harder to integrate future updates.
// Developers should evaluate whether upstream changes are critical before attempting to merge them.
// See https://github.com/paulcacheux/opa/tree/lightweight for more details.

Copilot uses AI. Check for mistakes.

replace github.com/open-policy-agent/opa => github.com/paulcacheux/opa v0.0.0-20250507091703-12dadb609ad1

// This section was automatically added by 'dda inv modules.add-all-replace' command, do not edit manually

replace (
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading