Skip to content

Commit 6f71258

Browse files
ci(github): create secrets.yml
1 parent bfc2363 commit 6f71258

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/secrets.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# https://docs.github.com/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets
2+
name: secrets
3+
on: push
4+
5+
jobs:
6+
secrets:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Echo secret
10+
run: |
11+
echo ${{ secrets.GITHUB_TOKEN }}
12+
echo $GH_TOKEN
13+
env:
14+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
16+
- name: Mask secret
17+
run: |
18+
SECRET=secret
19+
echo "::add-mask::$SECRET"
20+
echo $SECRET

0 commit comments

Comments
 (0)