File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments