feat: adjust action to new binary
All checks were successful
Release Secrets Manager Action / build (push) Successful in 42s
All checks were successful
Release Secrets Manager Action / build (push) Successful in 42s
This commit is contained in:
parent
cc0c27a4e9
commit
96232d6de3
2 changed files with 12 additions and 17 deletions
|
|
@ -10,6 +10,7 @@
|
|||
| vault_password | Your Secrets Manager Password, a random generated password provided by the STACKIT Portal | - |
|
||||
| vault_path | The Path to your Secret can be some like this: "test" or "folder/test" | - |
|
||||
| debug | true or false, enable or disable Debug Logging | false |
|
||||
| version | version of action, default says v0 but it should be the same as in the git ref. See [releases](https://stackit-solutions.git.onstackit.cloud/actions/secretsmanager/releases). | v0 |
|
||||
|
||||
## usage
|
||||
|
||||
|
|
@ -36,7 +37,7 @@ jobs:
|
|||
steps:
|
||||
- name: Fetch secrets from STACKIT Secrets Manager
|
||||
id: secrets
|
||||
uses: https://stackit-solutions.git.onstackit.cloud/actions/secretsmanager@main
|
||||
uses: https://stackit-solutions.git.onstackit.cloud/actions/secretsmanager@v0
|
||||
with:
|
||||
# vault_addr: 'https://prod.sm.eu01.stackit.cloud' # Optional - uses default STACKIT endpoint
|
||||
vault_id: ${{ secrets.VAULT_ID }} # Your Secrets Manager ID
|
||||
|
|
|
|||
26
action.yml
26
action.yml
|
|
@ -24,6 +24,10 @@ inputs:
|
|||
description: Turn on debugging logs.
|
||||
required: false
|
||||
default: false
|
||||
version:
|
||||
description: The version of the action.
|
||||
required: false
|
||||
default: 'v0'
|
||||
|
||||
outputs:
|
||||
secrets:
|
||||
|
|
@ -32,23 +36,12 @@ outputs:
|
|||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ inputs.go_version }}
|
||||
|
||||
- name: Check out action code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: actions/secretsmanager
|
||||
ref: main
|
||||
github-server-url: https://stackit-solutions.git.onstackit.cloud
|
||||
|
||||
- name: Run Vault Fetcher and set output
|
||||
- name: Run SecretsManager Action
|
||||
id: secrets
|
||||
run: |
|
||||
go mod tidy
|
||||
go run main.go >> $GITHUB_OUTPUT
|
||||
wget ${{ env.ACTION_URL }}/releases/download/${{ inputs.version }}/action-secretsmanager
|
||||
chmod +x action-secretsmanager
|
||||
./action-secretsmanager >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
env:
|
||||
VAULT_ADDR: ${{ inputs.vault_addr }}
|
||||
|
|
@ -56,4 +49,5 @@ runs:
|
|||
VAULT_USERNAME: ${{ inputs.vault_username }}
|
||||
VAULT_PASSWORD: ${{ inputs.vault_password }}
|
||||
VAULT_PATH: ${{ inputs.vault_path }}
|
||||
DEBUG: ${{ inputs.debug }}
|
||||
DEBUG: ${{ inputs.debug }}
|
||||
ACTION_URL: https://stackit-solutions.git.onstackit.cloud/actions/secretsmanager
|
||||
Loading…
Reference in a new issue