Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 887 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 887 Bytes

Test confbatstest

confbatstest GitHub Action

This action uses BATS and conftest. It also contains several tools which are used for JSON and YAML manipulation:

  • helm
  • jq
  • yq
  • oc

Usage

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