generated from cds-snc/project-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yaml
68 lines (66 loc) · 1.94 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: 'Terraform Plan'
description: 'Terraform init, validate, format check and plan'
author: 'Canadian Digital Service'
inputs:
allow-failure:
description: 'Allow the action to fail'
required: false
default: 'false'
comment:
description: 'Add comment with changes to the PR'
required: false
default: 'true'
comment-delete:
description: 'Delete previous comments made by the bot on the PR'
required: false
default: 'false'
comment-title:
description: 'The title to give the PR comment'
required: false
default: 'Plan changes'
conftest-character-limit:
description: 'Character limit for Conftest output '
required: false
default: '2000'
conftest-checks:
description: 'Location of custom conftest check definitions, e.g. `git::https://github.com/user/repository.git`, `./conftest-checks`'
required: false
default: 'git::https://github.com/cds-snc/opa_checks.git//aws_terraform'
directory:
description: 'Directory with the *.tf files to validate'
required: false
default: '.'
github-token:
description: 'GitHub Token used to add comment to PR'
required: false
default: 'false'
plan-character-limit:
description: 'Character limit for Terraform plan output'
required: false
default: '30000'
terraform-init:
description: 'Custom Terraform init args'
required: false
default: ''
terragrunt:
description: 'Use Terragrunt instead of Terraform'
required: false
default: 'false'
skip-conftest:
description: 'Skip the conftest step'
required: false
default: 'false'
skip-fmt:
description: 'Skip the terraform fmt check'
required: false
default: 'false'
skip-plan:
description: 'Skip the planning step, used for repos that do not specifically have a remote backend'
required: false
default: 'false'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'layers'
color: 'purple'