From 5878dee569da9db201e30df7b49ee7134cfccf2e Mon Sep 17 00:00:00 2001 From: Kevin Gilpin Date: Thu, 8 Aug 2024 11:49:06 -0400 Subject: [PATCH] fixup! feat (wip): Update github token --- plan/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plan/action.yml b/plan/action.yml index 1a85e46..2d2a936 100644 --- a/plan/action.yml +++ b/plan/action.yml @@ -54,11 +54,11 @@ runs: # If the comment is found, edit the comment using cURL # If the comment is not found, add a new comment using cURL if [ -z "$comment_id" ]; then - curl -X POST -H "Authorization: token ${{ inputs.github_token }}" -H "Content-Type: application/json" \ + curl -X POST -H "Authorization: Bearer ${{ inputs.github_token }}" -H "Content-Type: application/json" \ -d "{\"body\": $encoded_body}" \ "https://api.github.com/repos/${{ github.repository }}/issues/${{ inputs.issue_id }}/comments" else - curl -X PATCH -H "Authorization: token ${{ inputs.github_token }}" -H "Content-Type: application/json" \ + curl -X PATCH -H "Authorization: Bearer ${{ inputs.github_token }}" -H "Content-Type: application/json" \ -d "{\"body\": $encoded_body}" \ "https://api.github.com/repos/${{ github.repository }}/issues/comments/$comment_id" fi