-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
45 lines (45 loc) · 1.17 KB
/
action.yml
File metadata and controls
45 lines (45 loc) · 1.17 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
44
45
name: "Zimagi Commmand API Executor"
description: "GitHub Action for executing API based Zimagi commands"
inputs:
command:
description: "Full path of command (ex; module/list)"
required: true
options:
description: "YAML/JSON encoded map of command options"
required: false
default: "{}"
user:
description: "Zimagi user name"
required: false
default: "admin"
token:
description: "Zimagi user token"
required: true
encryption_key:
description: "Zimagi user encryption key"
required: false
default: ""
host:
description: "Zimagi Command API host"
required: false
default: "127.0.0.1"
port:
description: "Zimagi Command API port"
required: false
default: "5123"
log_level:
description: "Zimagi client log level"
required: false
default: "WARNING"
runs:
using: docker
image: Dockerfile
args:
- "${{ inputs.command }}"
- '${{ inputs.options }}'
- "--user=${{ inputs.user }}"
- "--token=${{ inputs.token }}"
- "--encryption-key=${{ inputs.encryption_key }}"
- "--host=${{ inputs.host }}"
- "--port=${{ inputs.port }}"
- "--log-level=${{ inputs.log_level }}"