diff --git a/README.md b/README.md index 4b3ec20..ec711aa 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,9 @@ passed to the action using `with`, as demonstrated with `files` in the above exa | Property | Default | Description | | --- | --- | --- | -| files | - | *Required* which files to test | +| 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 | diff --git a/action.yml b/action.yml index 62b8c38..3b00d14 100644 --- a/action.yml +++ b/action.yml @@ -11,17 +11,24 @@ inputs: policy: description: "Where to find the policy folder or file" default: "policy" + namespace: + description: "The Rego namespace to use for testing" + default: "main" output: description: "Output format for results" default: "stdout" + args: + description: "Any additional arguments to pass to Conftest" runs: using: 'docker' image: 'docker://instrumenta/conftest:latest' args: - test - - ${{ inputs.files }} - -o - ${{ inputs.output }} - -p - ${{ inputs.policy }} - + - --namespace + - ${{ inputs.namespace }} + - ${{ inputs.args }} + - ${{ inputs.files }}