Skip to content

Commit 174a5d4

Browse files
committed
fix: pass explicit token to check run
1 parent 3ef2563 commit 174a5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ runs:
398398
echo "job=$job_id" >> "$GITHUB_OUTPUT"
399399
400400
# Add summary to the job status.
401-
check_run=$(gh api /repos/${{ github.repository }}/check-runs/${job_id} --header "$GH_API" --method PATCH --field "output[title]=${summary}" --field "output[summary]=${summary}")
401+
check_run=$(GH_TOKEN=${{ github.token }} gh api /repos/${{ github.repository }}/check-runs/${job_id} --header "$GH_API" --method PATCH --field "output[title]=${summary}" --field "output[summary]=${summary}")
402402
403403
# Get the step number that has status "in_progress" from the current job.
404404
workflow_step=$(echo "$workflow_run" | jq --raw-output --arg job_id "$job_id" '.jobs[] | select(.id == ($job_id | tonumber)) | .steps[] | select(.status == "in_progress") | .number')

0 commit comments

Comments
 (0)