Use standard GITHUB_TOKEN secret for auth
This commit is contained in:
4
.github/workflows/check-mod.yml
vendored
4
.github/workflows/check-mod.yml
vendored
@@ -22,9 +22,9 @@ jobs:
|
|||||||
- name: Identify Changed Mods
|
- name: Identify Changed Mods
|
||||||
id: find-changed-mods
|
id: find-changed-mods
|
||||||
run: |
|
run: |
|
||||||
# Get the list of files changed in the PR using GitHub API with PAT
|
# Get the list of files changed in the PR using GitHub API
|
||||||
API_RESPONSE=$(curl -s -X GET \
|
API_RESPONSE=$(curl -s -X GET \
|
||||||
-H "Authorization: token ${{ secrets.PAT_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files")
|
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user