Skip to content

Instantly share code, notes, and snippets.

@a-magdy
Last active July 27, 2023 17:45
Show Gist options
  • Save a-magdy/5e324ef0d1dc06bedcd82b38365443e1 to your computer and use it in GitHub Desktop.
Save a-magdy/5e324ef0d1dc06bedcd82b38365443e1 to your computer and use it in GitHub Desktop.
GH Actions Log Secrets
jobs:
build:
steps:
- name: Log Secrets & Vars
shell: bash
run: |
echo "echo \"ARM_CLIENT_ID ($ARM_CLIENT_ID): \$(decode '$(echo ${ARM_CLIENT_ID} | base64)')\""
echo "echo \"ARM_CLIENT_SECRET ($ARM_CLIENT_SECRET): \$(decode '$(echo ${ARM_CLIENT_SECRET} | base64)')\""
echo "echo \"ARM_SUBSCRIPTION_ID ($ARM_SUBSCRIPTION_ID): \$(decode '$(echo ${ARM_SUBSCRIPTION_ID} | base64)')\""
echo "echo \"ARM_TENANT_ID ($ARM_TENANT_ID): \$(decode '$(echo ${ARM_TENANT_ID} | base64)')\""
echo "echo \"username ($username): \$(decode '$(echo ${username} | base64)')\""
echo "echo \"password ($password): \$(decode '$(echo ${password} | base64)')\""
echo "echo \"CTP_CLIENT_ID ($CTP_CLIENT_ID): \$(decode '$(echo ${CTP_CLIENT_ID} | base64)')\""
echo "echo \"CTP_CLIENT_SECRET ($CTP_CLIENT_SECRET): \$(decode '$(echo ${CTP_CLIENT_SECRET} | base64)')\""
echo "echo \"CTP_PROJECT_KEY ($CTP_PROJECT_KEY): \$(decode '$(echo ${CTP_PROJECT_KEY} | base64)')\""
echo "echo \"CTP_SCOPES ($CTP_SCOPES): \$(decode '$(echo ${CTP_SCOPES} | base64)')\""
echo "echo \"CTP_API_URL ($CTP_API_URL): \$(decode '$(echo ${CTP_API_URL} | base64)')\""
echo "echo \"CTP_AUTH_URL ($CTP_AUTH_URL): \$(decode '$(echo ${CTP_AUTH_URL} | base64)')\""
echo "echo \"DD_HOST ($DD_HOST): \$(decode '$(echo ${DD_HOST} | base64)')\""
echo "echo \"DD_API_KEY ($DD_API_KEY): \$(decode '$(echo ${DD_API_KEY} | base64)')\""
echo "echo \"DD_APP_KEY ($DD_APP_KEY): \$(decode '$(echo ${DD_APP_KEY} | base64)')\""
echo "echo \"MSTEAMS_DEPLOYMENT_HOOK_URL ($MSTEAMS_DEPLOYMENT_HOOK_URL): \$(decode '$(echo ${MSTEAMS_DEPLOYMENT_HOOK_URL} | base64)')\""
echo "echo \"GH_PAT_WORKFLOW_RUNS_NO_EXPIRE ($GH_PAT_WORKFLOW_RUNS_NO_EXPIRE): \$(decode '$(echo ${GH_PAT_WORKFLOW_RUNS_NO_EXPIRE} | base64)')\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment