Releases: masterpointio/github-action-opa-rego-test
Releases · masterpointio/github-action-opa-rego-test
v2.0.0
2.0.0 (2025-05-30)
This new release changes how the OPA test commands are executed. Previously, it was executed as a bash script within the action.yml
. Now, it is executed programmatically with GitHub's @action/exec
package
. This allows the output to be easily fed as JSON and processed.
There is also a new input option of test_mode
which allows the option to test the OPA by the entire package (directory based aka opa test ./
) or file by file (e.g. opa test a_test.rego a.rego
).
- The end result should be the same if the OPA package is structured properly.
- Previously, it was tested file by file, so if tests are failing, to maintain old behavior, use the input
test_mode = file
- If encountering any issues, please be sure to report them!
⚠ BREAKING CHANGES
- ts: use @actions/exec instead of bash script for OPA commands, allow testing entire directory vs file by file (#27)
Bug Fixes
Code Refactoring
v1.2.0
v1.1.0
v1.0.0
1.0.0 (2024-08-22)
Features
- allow different postfix and other inputs and documentation (#2) (0ea31f1)
- codestyle: linting and trunk (#6) (8f4578a)
- GHA for testing OPA Rego policies and generating a summary report (#1) (8cb09b7)
- outputs and release please (#4) (1be1316)
- pin to sha + additional inputs (#3) (6236e8b)
- report-message: add
indicate_source_message
flag for reference to this repo (#9) (e5f6875) - tests: typescript optimizations and ci tests (#8) (d1c2ec7)