-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaction.yml
More file actions
43 lines (39 loc) · 1.33 KB
/
action.yml
File metadata and controls
43 lines (39 loc) · 1.33 KB
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
name: terrafetch
description: Add flair to your infrastructure repositories with Terrafetch.
author: RoseSecurity
branding:
icon: cloud
color: purple
inputs:
github_token:
description: GITHUB_TOKEN used for committing README updates
default: ${{ github.token }}
required: true
output_file:
description: README-style file that contains <!-- TERRAFETCH:START / END --> markers
default: README.md
collapse_output:
description: Set to **true** to fold Terrafetch output into a `<details>` block; **false** shows the full log
default: "true"
terraform_directory:
description: Directory holding Terraform code to analyze
default: .
terrafetch_version:
description: Terrafetch version (e.g. 0.2.0 or "latest")
default: latest
outputs:
terrafetch-return-code:
description: Exit code from the terrafetch run
value: ${{ steps.terrafetch.outputs.terrafetch-return-code }}
runs:
using: composite
steps:
- id: terrafetch
run: $GITHUB_ACTION_PATH/action.sh
shell: bash
env:
INPUT_GITHUB_TOKEN: ${{ inputs.github_token }}
INPUT_OUTPUT_FILE: ${{ inputs.output_file }}
INPUT_COLLAPSE_OUTPUT: ${{ inputs.collapse_output }}
INPUT_TERRAFORM_DIRECTORY: ${{ inputs.terraform_directory }}
INPUT_TERRAFETCH_VERSION: ${{ inputs.terrafetch_version }}