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_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" | - |
|
| 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 |
|
| 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
|
## usage
|
||||||
|
|
||||||
|
|
@ -36,7 +37,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch secrets from STACKIT Secrets Manager
|
- name: Fetch secrets from STACKIT Secrets Manager
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: https://stackit-solutions.git.onstackit.cloud/actions/secretsmanager@main
|
uses: https://stackit-solutions.git.onstackit.cloud/actions/secretsmanager@v0
|
||||||
with:
|
with:
|
||||||
# vault_addr: 'https://prod.sm.eu01.stackit.cloud' # Optional - uses default STACKIT endpoint
|
# vault_addr: 'https://prod.sm.eu01.stackit.cloud' # Optional - uses default STACKIT endpoint
|
||||||
vault_id: ${{ secrets.VAULT_ID }} # Your Secrets Manager ID
|
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.
|
description: Turn on debugging logs.
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
version:
|
||||||
|
description: The version of the action.
|
||||||
|
required: false
|
||||||
|
default: 'v0'
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
secrets:
|
secrets:
|
||||||
|
|
@ -32,23 +36,12 @@ outputs:
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go
|
- name: Run SecretsManager Action
|
||||||
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
|
|
||||||
id: secrets
|
id: secrets
|
||||||
run: |
|
run: |
|
||||||
go mod tidy
|
wget ${{ env.ACTION_URL }}/releases/download/${{ inputs.version }}/action-secretsmanager
|
||||||
go run main.go >> $GITHUB_OUTPUT
|
chmod +x action-secretsmanager
|
||||||
|
./action-secretsmanager >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
VAULT_ADDR: ${{ inputs.vault_addr }}
|
VAULT_ADDR: ${{ inputs.vault_addr }}
|
||||||
|
|
@ -56,4 +49,5 @@ runs:
|
||||||
VAULT_USERNAME: ${{ inputs.vault_username }}
|
VAULT_USERNAME: ${{ inputs.vault_username }}
|
||||||
VAULT_PASSWORD: ${{ inputs.vault_password }}
|
VAULT_PASSWORD: ${{ inputs.vault_password }}
|
||||||
VAULT_PATH: ${{ inputs.vault_path }}
|
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