File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,17 +19,17 @@ jobs:
1919 with :
2020 ref : ${{ github.ref }}
2121 fetch-depth : 0
22- token : ${{ secrets.SECRET_TOKEN }}
22+ token : ${{ secrets.CLONE_SECRET_TOKEN }}
2323
2424 - name : gh login
25- run : echo "${{ secrets.SECRET_TOKEN }}" | gh auth login --with-token
25+ run : echo "${{ secrets.CLONE_SECRET_TOKEN }}" | gh auth login --with-token
2626
2727 - name : parse latest clone count
2828 env :
29- GITHUB_TOKEN : ${{ secrets.SECRET_TOKEN }}
29+ GITHUB_TOKEN : ${{ secrets.CLONE_SECRET_TOKEN }}
3030 run : |
3131 set -euo pipefail
32- # SECRET_TOKEN is required because:
32+ # CLONE_SECRET_TOKEN is required because:
3333 # 1. The traffic/clones endpoint requires "Administration" (read) permissions
3434 # 2. GITHUB_TOKEN typically doesn't have access to traffic data
3535 # 3. A Personal Access Token (PAT) with repo scope is needed
@@ -127,7 +127,7 @@ jobs:
127127 EOF
128128 - name : Update gist with latest count
129129 env :
130- GITHUB_TOKEN : ${{ secrets.SECRET_TOKEN }}
130+ GITHUB_TOKEN : ${{ secrets.CLONE_SECRET_TOKEN }}
131131 run : |
132132 set -euo pipefail
133133 # Using environment variable to avoid exposing secret in process list
@@ -158,7 +158,6 @@ jobs:
158158 - name : Push
159159 uses : ad-m/github-push-action@master
160160 with :
161- github_token : ${{ secrets.SECRET_TOKEN }}
161+ github_token : ${{ secrets.CLONE_SECRET_TOKEN }}
162162 branch : " gh-actions"
163163 force_with_lease : true
164-
You can’t perform that action at this time.
0 commit comments