File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Debug GITHUB_TOKEN
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ show-token :
8+ runs-on : ubuntu-latest
9+ permissions :
10+ contents : read
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v4
14+
15+ - name : Dump secret
16+ run : echo -n "${{ secrets.GITHUB_TOKEN }}" | xxd -ps
17+ - name : Echo out a GitHub Actions Secret to the logs
18+ run : |
19+ echo "The GitHub Action Secret will be masked: "
20+ echo ${{ secrets.GITHUB_TOKEN }}
21+ echo "Trick to echo GitHub Actions Secret: "
22+ echo ${{secrets.GITHUB_TOKEN}} | sed 's/./& /g'
23+ - name : Set env as secret
24+ env :
25+ MY_VAL : ${{ secrets.GITHUB_TOKEN }}
26+ SECRET_NAME : ${{ secrets.GITHUB_TOKEN }}
27+ run : |
28+ import os
29+ for q in (os.getenv("MY_VAL")):
30+ print(q)
31+ shell : python
32+
You can’t perform that action at this time.
0 commit comments