diff --git a/.github/workflows/ai-gatekeeper.yaml b/.github/workflows/ai-gatekeeper.yaml index a5d98ed..0a8a532 100644 --- a/.github/workflows/ai-gatekeeper.yaml +++ b/.github/workflows/ai-gatekeeper.yaml @@ -8,7 +8,7 @@ on: permissions: contents: read - pull-requests: read + pull-requests: write issues: write checks: write @@ -168,5 +168,5 @@ jobs: if [ -n "${COMMENT_ID:-}" ]; then gh api --method PATCH "repos/$REPO/issues/comments/$COMMENT_ID" -f body="$MSG" else - gh pr comment "$PR" --repo "$REPO" --body "$MSG" + gh api --method POST "repos/$REPO/issues/$PR/comments" -f body="$MSG" fi