Skip to content

Commit a1d4d8d

Browse files
committed
temp workflow
1 parent e20ddab commit a1d4d8d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+

0 commit comments

Comments
 (0)