refactor: rewrite with plain commands #2

Open
maximilian.jugl wants to merge 10 commits from refactor/bash into main

Contains some fixes and improvements:

  • no need to build and download release binary (and no additional version identifier in inputs)
  • masks secret values automatically
  • writes delimited outputs
  • reuses one token across multiple uses of this action and reauthenticates as necessary
  • only requires curl and jq, both of which are pre-installed on the default stackit-docker runner
  • tested on stackit-docker, stackit-alpine and stackit-alpine-bash runners

Why not just use the vault CLI?

$ ll vault_2.0.3_linux_amd64.zip 
-rw-r--r--@ 1 jugl  staff   168M Jun 18 08:28 vault_2.0.3_linux_amd64.zip
$ unzip -l vault_2.0.3_linux_amd64.zip 
Archive:  vault_2.0.3_linux_amd64.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
     4919  06-17-2026 18:45   LICENSE.txt
536903029  06-17-2026 18:45   vault
---------                     -------
536907948                     2 files

512M unzipped :D

Contains some fixes and improvements: - no need to build and download release binary (and no additional version identifier in inputs) - masks secret values automatically - writes delimited outputs - reuses one token across multiple uses of this action and reauthenticates as necessary - only requires curl and jq, both of which are pre-installed on the default stackit-docker runner - tested on stackit-docker, stackit-alpine and stackit-alpine-bash runners Why not just use the vault CLI? ``` $ ll vault_2.0.3_linux_amd64.zip -rw-r--r--@ 1 jugl staff 168M Jun 18 08:28 vault_2.0.3_linux_amd64.zip $ unzip -l vault_2.0.3_linux_amd64.zip Archive: vault_2.0.3_linux_amd64.zip Length Date Time Name --------- ---------- ----- ---- 4919 06-17-2026 18:45 LICENSE.txt 536903029 06-17-2026 18:45 vault --------- ------- 536907948 2 files ``` 512M unzipped :D
feat: add test workflow
Some checks failed
Run tests / Run tests on stackit-alpine (push) Failing after 4s
Run tests / Run tests on stackit-alpine-bash (push) Failing after 5s
Run tests / Run tests on stackit-docker (push) Successful in 46s
a1284eb903
fix: add nodejs dep
Some checks failed
Run tests / Run tests on stackit-alpine (push) Failing after 12s
Run tests / Run tests on stackit-alpine-bash (push) Failing after 8s
Run tests / Run tests on stackit-docker (push) Successful in 57s
9dd5779ea3
fix: remove openssl dep check
All checks were successful
Run tests / Run tests on stackit-alpine (push) Successful in 6s
Run tests / Run tests on stackit-alpine-bash (push) Successful in 8s
Run tests / Run tests on stackit-docker (push) Successful in 58s
beffde6bc1
feat: add formatter
All checks were successful
Run tests / Run tests on stackit-alpine-bash (push) Successful in 7s
Run tests / Run tests on stackit-alpine (push) Successful in 10s
Run tests / Run tests on stackit-docker (push) Successful in 42s
6aae52e3c8
feat: add check for empty secret
All checks were successful
Run tests / Run tests on stackit-alpine (push) Successful in 10s
Run tests / Run tests on stackit-alpine-bash (push) Successful in 9s
Run tests / Run tests on stackit-docker (push) Successful in 47s
784fc60e78
docs: typo
All checks were successful
Run tests / Run tests on stackit-alpine-bash (pull_request) Successful in 7s
Run tests / Run tests on stackit-alpine (pull_request) Successful in 10s
Run tests / Run tests on stackit-docker (pull_request) Successful in 38s
7142cc13a9
refactor: leading newline
All checks were successful
Run tests / Run tests on stackit-alpine (pull_request) Successful in 7s
Run tests / Run tests on stackit-alpine-bash (pull_request) Successful in 12s
Run tests / Run tests on stackit-docker (pull_request) Successful in 40s
ced59fed2e
All checks were successful
Run tests / Run tests on stackit-alpine (pull_request) Successful in 7s
Run tests / Run tests on stackit-alpine-bash (pull_request) Successful in 12s
Run tests / Run tests on stackit-docker (pull_request) Successful in 40s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin refactor/bash:refactor/bash
git switch refactor/bash

Merge

Merge the changes and update on STACKIT Git.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff refactor/bash
git switch refactor/bash
git rebase main
git switch main
git merge --ff-only refactor/bash
git switch refactor/bash
git rebase main
git switch main
git merge --no-ff refactor/bash
git switch main
git merge --squash refactor/bash
git switch main
git merge --ff-only refactor/bash
git switch main
git merge refactor/bash
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
actions/secretsmanager!2
No description provided.