Delete .github/workflows/hashibot-vars.yml
This commit is contained in:
parent
0cea07a553
commit
f7d497d4f6
37
.github/workflows/hashibot-vars.yml
vendored
37
.github/workflows/hashibot-vars.yml
vendored
@ -1,37 +0,0 @@
|
||||
name: HashiBot Vars
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
outputs:
|
||||
HASHIBOT_EMAIL:
|
||||
value: ${{ jobs.get-vars.outputs.HASHIBOT_EMAIL }}
|
||||
HASHIBOT_TOKEN:
|
||||
value: ${{ jobs.get-vars.outputs.HASHIBOT_TOKEN }}
|
||||
HASHIBOT_USERNAME:
|
||||
value: ${{ jobs.get-vars.outputs.HASHIBOT_USERNAME }}
|
||||
|
||||
jobs:
|
||||
get-vars:
|
||||
runs-on: self-hosted
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
outputs:
|
||||
HASHIBOT_EMAIL: ${{ steps.vars.outputs.HASHIBOT_EMAIL }}
|
||||
HASHIBOT_TOKEN: ${{ steps.vars.outputs.HASHIBOT_TOKEN }}
|
||||
HASHIBOT_USERNAME: ${{ steps.vars.outputs.HASHIBOT_USERNAME }}
|
||||
steps:
|
||||
- name: Authentication
|
||||
id: vault-auth
|
||||
run: vault-auth
|
||||
- name: Fetch vars
|
||||
id: vars
|
||||
uses: hashicorp/vault-action@v2
|
||||
with:
|
||||
url: ${{ steps.vault-auth.outputs.addr }}
|
||||
caCertificate: ${{ steps.vault-auth.outputs.ca_certificate }}
|
||||
token: ${{ steps.vault-auth.outputs.token }}
|
||||
secrets:
|
||||
kv/data/teams/vagrant/hashibot email | HASHIBOT_EMAIL;
|
||||
kv/data/teams/vagrant/hashibot token | HASHIBOT_TOKEN;
|
||||
kv/data/teams/vagrant/hashibot username | HASHIBOT_USERNAME;
|
||||
Loading…
x
Reference in New Issue
Block a user