Skip to content

v2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 May 22:24
7a055ee

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

  • ts: use @actions/exec instead of bash script for OPA commands, allow testing entire directory vs file by file (#27) (9eecaf7)