@@ -75,16 +75,17 @@ In the example below, all `_test.rego` files' location are valid and will be exe
7575
7676# ## Inputs
7777
78- | Input | Description | Required | Default |
79- | ----------------------- | ------------------------------------------------------------------------------------------ | -------- | --------------------------------- |
80- | `path` | Path to the directory containing OPA Rego files to test | No | `.` (root directory) |
81- | `test_file_postfix` | Postfix of the test files to run (e.g. notification.rego <> notification_test.rego) | No | `_test` |
82- | `write_pr_comment` | Flag to write a user-friendly PR comment with test results | No | `true` |
83- | `pr_comment_title` | Title of the PR comment for test results | No | `🧪 OPA Rego Policy Test Results` |
84- | `pr_comment_mode` | Mode that will be used to update comment. Options of upsert (update in place) or recreate. | No | `upsert` |
85- | `run_coverage_report` | Flag to run OPA coverage tests and include in PR comment | No | `true` |
86- | `report_untested_files` | Check & report Rego files without corresponding test files | No | `false` |
87- | `opa_version` | Version of the OPA CLI to use. | No | `0.67.1` |
78+ | Input | Description | Required | Default |
79+ | ------------------------- | ----------------------------------------------------------------------------------------------- | -------- | --------------------------------- |
80+ | `path` | Path to the directory containing OPA Rego files to test | No | `.` (root directory) |
81+ | `test_file_postfix` | Postfix of the test files to run (e.g. notification.rego <> notification_test.rego) | No | `_test` |
82+ | `write_pr_comment` | Flag to write a user-friendly PR comment with test results | No | `true` |
83+ | `pr_comment_title` | Title of the PR comment for test results | No | `🧪 OPA Rego Policy Test Results` |
84+ | `pr_comment_mode` | Mode that will be used to update comment. Options of upsert (update in place) or recreate. | No | `upsert` |
85+ | `run_coverage_report` | Flag to run OPA coverage tests and include in PR comment | No | `true` |
86+ | `report_untested_files` | Check & report Rego files without corresponding test files | No | `false` |
87+ | `opa_version` | Version of the OPA CLI to use. | No | `0.67.1` |
88+ | `indicate_source_message` | Flag to comment the origins watermark (this repository) of the GitHub Action in the PR comment. | No | `true` |
8889
8990# ## Outputs
9091
@@ -150,4 +151,3 @@ Contributions are welcome! Please feel free to submit a Pull Request or open any
150151# ## TODO
151152
152153- publish to marketplace
153- - add a little something at the bottom, generated with action by Masterpoint? user can turn off.
0 commit comments