Skip to content

Releases: masterpointio/github-action-opa-rego-test

v2.0.0

30 May 22:24
7a055ee
Compare
Choose a tag to compare

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)

v1.2.0

30 Apr 12:26
6d75705
Compare
Choose a tag to compare

1.2.0 (2025-04-30)

Features

  • allow to request static opa binary (#24) (1e51290)

v1.1.0

15 Jan 18:51
1a64a86
Compare
Choose a tag to compare

1.1.0 (2025-01-15)

Features

  • github-action: add actionlint to lint against gha yamls (#18) (7a7b55d)

Bug Fixes

v1.0.0

22 Aug 17:13
7251234
Compare
Choose a tag to compare

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)