-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (49 loc) · 1.46 KB
/
test-vault.yml
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
name: 'Terragrunt GitHub Actions'
on:
workflow_call:
inputs:
TELEPORT_PROXY_URL:
required: false
type: string
default: ''
description: Default Teleport URL
TELEPORT_APP:
required: false
type: string
default: ''
description: An app registered on teleport to authenticate using proxy
VAULT_SECRETS:
required: false
type: string
default: ''
description: A new line list of vault secrets to be fetched
secrets:
TELEPORT_TOKEN:
required: false
description: Teleport Token name
VAULT_TOKEN:
required: false
description: A Vault token in case vault is required
jobs:
terragrunt:
name: 'Test vault'
runs-on: self-hosted
permissions: write-all
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: Checkout actions
uses: actions/checkout@v4
with:
repository: signalwire/actions-template
ref: vault-secrets
path: actions
- name: vault secrets
uses: ./actions/.github/actions/vault-secrets
env:
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}
VAULT_ADDR: https://${{ inputs.TELEPORT_PROXY_URL }}
TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }}
TELEPORT_APP: vault
TELEPORT_PROXY_URL: ${{ inputs.TELEPORT_PROXY_URL }}
SECRETS: ${{ inputs.VAULT_SECRETS }}