-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
29 lines (29 loc) · 868 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: "Conftest"
description: "Write tests against structured configuration data using Open Policy Agent"
author: "Henrique Lobao"
branding:
icon: "check"
color: "green"
inputs:
files:
description: "Files for Conftest to test"
required: true
policy:
description: "Where to find the policy folder or file"
default: "policy"
namespace:
description: "The Rego namespace to use for testing"
default: "main"
combine:
description: "Whether to combine input files"
default: "false"
output:
description: "Output format for results"
default: "stdout"
runs:
using: 'docker'
image: 'docker://openpolicyagent/conftest:latest'
entrypoint: sh
args:
- -c
- conftest test -o "${{ inputs.output }}" -p "${{ inputs.policy }}" --namespace "${{ inputs.namespace }}" --combine="${{ inputs.combine }}" ${{ inputs.files }}