This action uses BATS and conftest. It also contains several tools which are used for JSON and YAML manipulation:
- helm
- jq
- yq
- oc
Execute a BATS file which contains conftest tests.
- name: Conftest
uses: redhat-cop/github-actions/confbatstest@master
with:
tests: _test/conftest.sh
policies: '[{"name": "redhat-cop", "url":"github.com/redhat-cop/rego-policies.git//policy"}]'
Execute a command, such as konstraint to generate rego policy documentation.
- name: Conftest
uses: redhat-cop/github-actions/confbatstest@master
with:
raw: konstraint doc -o POLICIES.md