-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
41 lines (41 loc) · 1.04 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
# action.yml
name: 'Decrypt Secret'
description: 'Decrypts a secret from .git-secrets.json'
branding:
icon: info
color: blue
inputs:
file:
description: 'Path to .git-secrets.json'
required: false
default: '.git-secrets.json'
context:
description: 'Which context to use'
required: false
default: 'default'
resource:
description: 'Resolve secret or config entry'
required: false
default: 'secret'
name:
description: 'The name of the resource'
required: true
decryptSecretName:
description: 'The decrypt secret name'
required: true
decryptSecretValue:
description: 'The decrypt secret value'
required: true
outputs:
value: # id of output
description: 'either the decoded secret value or the config value'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.file }}
- ${{ inputs.context }}
- ${{ inputs.resource }}
- ${{ inputs.name }}
- ${{ inputs.decryptSecretName }}
- ${{ inputs.decryptSecretValue }}