You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Conftest
v0.2.0
A GitHub Action for using Conftest in your workflows.
You can use the action as follows:
on: push
name: Validate
jobs:
conftest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: test
uses: instrumenta/conftest-action@master
with:
files: deployment.yaml
The Conftest Action has a small number of properties which map to the parameters for Conftest itself. These are
passed to the action using with
, as demonstrated with files
in the above example.
Property | Default | Description |
---|---|---|
files | - | Required which files to test |
policy | policy | Where to find the policy folder or files |
namespace | main | The Rego namespace to use for testing |
output | stdout | How to format the output from Conftest (stdout, json or tap) |
args | - | Any additional arguments to pass to Conftest |