-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
48 lines (45 loc) · 1.39 KB
/
action.yaml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: enforcer
author: [email protected]
description: Evaluates a resource against a policy group in order to gate deployments.
branding:
icon: anchor
color: green
runs:
using: docker
image: docker://ghcr.io/rode/enforcer-action:latest
env:
ACCESS_TOKEN: ${{ inputs.accessToken }}
ENFORCE: ${{ inputs.enforce }}
GITHUB_TOKEN: ${{ inputs.githubToken }}
POLICY_GROUP: ${{ inputs.policyGroup }}
RESOURCE_URI: ${{ inputs.resourceUri }}
RODE_HOST: ${{ inputs.rodeHost }}
RODE_INSECURE_DISABLE_TRANSPORT_SECURITY: ${{ inputs.rodeInsecure }}
inputs:
accessToken:
description: "An access token that will be included in requests to Rode."
required: false
enforce:
description: "Controls whether the step should fail if the evaluation fails."
required: true
default: "true"
githubToken:
description: "Use to post comments on pull requests"
required: false
policyGroup:
description: "The policy group to evaluate the resource against."
required: true
default: ""
resourceUri:
description: "The resource to evaluate policy against."
required: true
rodeHost:
description: "Hostname of the Rode instance"
required: true
rodeInsecure:
description: "Disables transport security when communicating with Rode."
required: true
default: "false"
outputs:
pass:
description: Whether the resource passed evaluation