Skip to content

Commit 15b8c80

Browse files
authored
bring up to date with main (#54)
<!-- markdownlint-disable first-line-h1 no-inline-html --> <!-- Hidden Markdown: Do Not Update this Area. In order to have the best experience with our community, we recommend that you read the code of conduct and contributing guidelines before submitting a pull request. By submitting this pull request, you confirm that you have read, understood, and agreed to the project's code of conduct and contributing guidelines. Please use conventional commits to format the title of the pull request and the commit messages. For more information, please refer to https://www.conventionalcommits.org. -->. ### Summary <!-- Hidden Markdown: Do Not Update this Area. Please provide a clear and concise description of the pull request. -->. ### Type <!-- Hidden Markdown: Do Not Update this Area. Please check the one(s) that applies to this pull request using "x". --> - [ ] Bugfix - [x] Enhancement or Feature - [ ] Code Style or Formatting - [ ] Documentation - [ ] Refactoring - [ ] Chore - [ ] Other Please describe:. ### Breaking Changes? <!-- Hidden Markdown: Do Not Update this Area. Please check the one that applies to this pull request using "x". If this pull request contains a breaking change, please describe the impact and mitigation path. --> - [ ] Yes, there are breaking changes. - [ ] No, there are no breaking changes.. ### Test and Documentation <!-- Hidden Markdown: Do Not Update this Area. Please check the one(s) that applies to this pull request using "x". For bug fixes and enhancements/features, please ensure that tests and documentation have been completed and provide details. --> - [ ] Tests have been completed. - [ ] Documentation has been added or updated. <!-- Hidden Markdown: Do Not Update this Area. Please describe the tests that have been completed and/or the documentation that has been added/updated. -->. ### Issue References <!-- Hidden Markdown: Do Not Update this Area. Is this related to any GitHub issue(s)? If so, please provide the issue number(s) that are closed or resolved by this pull request. For bug fixes and enhancements/features, please ensure that a GitHub issue has been created and provide the issue number(s) here. Please use the 'Closes' keyword followed by the a hash and issue number. This will link the pull request to the issue(s) and automatically close them when the pull request is merged. Example: Closes #000 Closes #1 -->. ### Additional Information <!-- Hidden Markdown: Do Not Update this Area. Please provide any additional information that may be helpful. -->
2 parents db80424 + abd4e26 commit 15b8c80

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/clone.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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-

0 commit comments

Comments
 (0)