Terraform managed file [skip ci]
This commit is contained in:
parent
5aeb0c0250
commit
75a37721ff
29
.github/workflows/slack-vars.yml
vendored
Normal file
29
.github/workflows/slack-vars.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Slack Vars
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
outputs:
|
||||
SLACK_WEBHOOK:
|
||||
value: ${{ jobs.get-vars.outputs.SLACK_WEBHOOK }}
|
||||
|
||||
jobs:
|
||||
get-vars:
|
||||
runs-on: self-hosted
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
outputs:
|
||||
SLACK_WEBHOOK: ${{ steps.vars.outputs.SLACK_WEBHOOK }}
|
||||
steps:
|
||||
- name: Authentication
|
||||
id: vault-auth
|
||||
run: vault-auth
|
||||
- name: Fetch vars
|
||||
id: vars
|
||||
uses: hashicorp/vault-action@2.2.0
|
||||
with:
|
||||
url: ${{ steps.vault-auth.outputs.addr }}
|
||||
caCertificates: ${{ steps.vault-auth.outputs.ca_certificate }}
|
||||
token: ${{ steps.vault-auth.outputs.token }}
|
||||
secrets:
|
||||
kv/data/github/${{ github.repository }} slack_webhook | SLACK_WEBHOOK;
|
||||
Loading…
x
Reference in New Issue
Block a user