diff --git a/.github/workflows/_post-comment.yml b/.github/workflows/_post-comment.yml index 82b4054a..103dd569 100644 --- a/.github/workflows/_post-comment.yml +++ b/.github/workflows/_post-comment.yml @@ -14,8 +14,10 @@ jobs: notify: runs-on: ubuntu-latest steps: - - run: gh issue comment "$ISSUE_URL" --body "$MESSAGE" + - run: | + export GITHUB_TOKEN="$GH_TOKEN_SECRET" + gh issue comment "$ISSUE_URL" --body "$MESSAGE" env: ISSUE_URL: ${{ inputs.url }} MESSAGE: ${{ inputs.message }} - GITHUB_TOKEN: ${{ github.token }} + GH_TOKEN_SECRET: ${{ github.token }}