Skip to content

Commit 2420b83

Browse files
authored
Update auto-assign-reviewers.yml
1 parent 554d747 commit 2420b83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/auto-assign-reviewers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ jobs:
176176
comment_id=$(echo "$existing_comment" | head -1 | base64 -d | jq -r .id)
177177
echo "Updating existing comment $comment_id"
178178
response=$(curl -s -X PATCH \
179-
-H "Authorization: Bearer $SUPER_SECRET" \
179+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
180180
-d "$(jq -n --arg body "$(cat review_data.md)" '{body: $body}')" \
181181
"https://api.github.com/repos/${{ github.repository }}/issues/comments/$comment_id")
182182
else
183183
# 创建新评论
184184
echo "Creating new comment"
185185
response=$(curl -s -X POST \
186-
-H "Authorization: Bearer $SUPER_SECRET" \
186+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
187187
-d "$(jq -n --arg body "$(cat review_data.md)" '{body: $body}')" \
188188
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments")
189189
fi

0 commit comments

Comments
 (0)