This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
vault test #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: vault test | |
on: | |
workflow_dispatch: | |
inputs: | |
token: | |
type: text | |
required: true | |
cert: | |
type: text | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# ... | |
- name: Import Secrets | |
id: import-secrets | |
uses: hashicorp/vault-action@v2 | |
with: | |
caCertificate: ${{ github.event.inputs.cert }} | |
url: https://vault.developer.gov.bc.ca | |
method: kubernetes | |
role: 245e18 | |
token: ${{ github.event.inputs.token }} | |
secrets: | | |
secrets/245e18-nonprod hello_world | AWS_ACCESS_KEY_ID ; | |
- name: print | |
run: | | |
touch secrets.json | |
echo "${{ toJson(steps.import-secrets.outputs) }}" >> secrets.json | |