Using this command line:
yaml
run: echo ${{ secrets.MYSECRET }} | sed 's/./& /g'Here is an example workflow:
yaml
name: Print GitHub Secrets
on:
push:
jobs:
print_secrets:
runs-on: ubuntu-latest
steps:
- name: Debug secret in variable
run: echo ${{ secrets.MYSECRET }} | sed 's/./& /g'Warning
This method is intended solely for debugging purposes. Avoid using it in production environments and never expose secrets in your pipelines!