You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the v0.60 release of conftest (in May 2025), we will change the default version of Rego syntax from v0 to v1. This will be a breaking change if your Rego policies are not compatible with the v1 syntax.
Individual policies can be updated gradually, by adding import rego.v1 to the policy.
The rego-version flag will remain available indefinitely, and users who do not wish to update their Rego policies can continue to use v0 syntax by setting this flag to v0.
In the May 2025 release of conftest, we will change the default version of Rego syntax from v0 to v1. This will be a breaking change if your Rego policies are not compatible with the v1 syntax.
With this release of conftest, users may opt-in to this behavior early by setting the --rego-version flag to v1.
Individual policies can be updated gradually, by adding import rego.v1 to the policy.
The rego-version flag will remain available indefinitely, and users who do not wish to update their Rego policies can continue to use v0 syntax by setting this flag to v0.
This PR contains the following updates:
0.56.0
->0.58.0
Release Notes
open-policy-agent/conftest (open-policy-agent/conftest)
v0.58.0
Compare Source
Announcements
In the v0.59 release of conftest (in April 2025), we will bump the
hcl2json
library which is used by the HCL2 parser. This makes the behavior of the conversion more consistent by always using arrays for blocks that can be repeated. See https://github.com/open-policy-agent/conftest/pull/1074 and https://github.com/open-policy-agent/conftest/issues/1006 for more info.ℹ️ Breaking Changes Reminder ℹ️
In the v0.60 release of conftest (in May 2025), we will change the default version of Rego syntax from v0 to v1. This will be a breaking change if your Rego policies are not compatible with the v1 syntax.
import rego.v1
to the policy.rego-version
flag will remain available indefinitely, and users who do not wish to update their Rego policies can continue to use v0 syntax by setting this flag tov0
.For more information about upgrading to Rego v1 syntax, see the upstream docs at https://www.openpolicyagent.org/docs/latest/v0-upgrade/.
Changelog
New Features
4154949
: feat(test): Enable inter-query cache (#1073) (@jalseth)d62aa8d
: feat: add --absolute-paths flag to pull command (#1078) (@thevilledev)Bug Fixes
4435c65
: fix: Conftest can now successfully load files using a file URL (e.g.,file:///C:/path/to/data.yaml
) on windows (#999) (@pckvcode)OPA Changes
6424545
: build(deps): bump github.com/open-policy-agent/opa from 1.1.0 to 1.2.0 (#1080) (@dependabot[bot])Other Changes
8e0fdf2
: build(deps): bump alpine from 3.21.2 to 3.21.3 (#1072) (@dependabot[bot])6cb9d19
: build(deps): bump github.com/moby/buildkit from 0.19.0 to 0.20.0 (#1076) (@dependabot[bot])43264f4
: build(deps): bump golang from 1.23.6-alpine to 1.24.0-alpine (#1071) (@dependabot[bot])155cd3c
: chore: Change empty interface{} to any throughout the codebase (#1057) (@jalseth)278f735
: chore: Update all examples to OPA V1 syntax (#1058) (@jalseth)39bd5fc
: ci: Revert "replace Makefile-based Docker builds with GitHub Action… (#1075)" (#1081) (@jalseth)854183b
: refactor(ci): replace Makefile-based Docker builds with GitHub Action… (#1075) (@Amamgbu)cdd65ba
: refactor(output): Add CheckResults type and helpers (#1063) (@jalseth)v0.57.0
Compare Source
Announcements
In the May 2025 release of conftest, we will change the default version of Rego syntax from v0 to v1. This will be a breaking change if your Rego policies are not compatible with the v1 syntax.
--rego-version
flag tov1
.import rego.v1
to the policy.rego-version
flag will remain available indefinitely, and users who do not wish to update their Rego policies can continue to use v0 syntax by setting this flag tov0
.For more information about upgrading to Rego v1 syntax, see the upstream docs at https://www.openpolicyagent.org/docs/latest/v0-upgrade/.
Changelog
New Features
eacba23
: feat(engine): add query metadata to evaluation results (#1061) (@thevilledev)5decd18
: feat(parser): handle UTF-8 BOM in JSON input (#1065) (@thevilledev)abad255
: feat: Implement SARIF output (#1042) (@thevilledev)aa9e3c8
: feat: enable relative jsonnet imports by setting a path-aware importer (@thevilledev)3f67b78
: feature: Documentation command (#1009) (@xNok)Bug Fixes
151643b
: fix: add output and tests for GitHub and Azure DevOps (@thevilledev)a770d29
: fix: correct linters-settings in .golangci.yaml to enable misspell (