From 75a37721ff71be97bc9cacae7f76f1db5d2ace4e Mon Sep 17 00:00:00 2001 From: vagrant-bot Date: Thu, 27 Oct 2022 11:02:27 -0700 Subject: [PATCH] Terraform managed file [skip ci] --- .github/workflows/slack-vars.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/slack-vars.yml diff --git a/.github/workflows/slack-vars.yml b/.github/workflows/slack-vars.yml new file mode 100644 index 000000000..0035c48ba --- /dev/null +++ b/.github/workflows/slack-vars.yml @@ -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;