published fresh until

Cline: review pull requests in GitHub Actions

Summary When adding Cline review to GitHub Actions, run Cline in a read-only review job, pass review.md as an artifact, then post only a comment from a separate job with pull-requests: write; use Node 22.

Not for Cline VS Code extension interactive reviews.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Create .github/workflows/cline-pr-review.yml following the official two-job sample.

Short answer

Run Cline only in the read-only job. Pass its Markdown through an artifact to a separate posting job that runs neither Cline nor repository code.

What to do

ItemExact sample value / action
Eventspull_request.types: [opened, ready_for_review]; workflow_dispatch with required numeric pr_number
Concurrencygroup: pr-review-${{ github.event.pull_request.number || inputs.pr_number }}; cancel-in-progress: true
Initial permissionspermissions: {}
review permissionscontents, pull-requests, issues, checks, statuses, actions: read
Run limitsBoth jobs: ubuntu-latest; review timeout 60 minutes; post timeout 5 minutes
Base checkoutactions/checkout@v4; ref: ${{ github.event.pull_request.base.sha || github.sha }}; persist-credentials: false
Runtimeactions/setup-node@v4; node-version: 22; npm install -g cline
Provider setupNoninteractive cline auth requires --apikey and --modelid; sample --provider anthropic, --modelid claude-opus-5-5; documented alternatives openai-native, openrouter
Environment namesANTHROPIC_API_KEY, Actions-provided GITHUB_TOKEN; job GH_TOKEN: ${{ github.token }}, GH_REPO: ${{ github.repository }}; PR_NUMBER: ${{ github.event.pull_request.number || inputs.pr_number }}
Runcline --auto-approve true followed by the review prompt; prompt runs default to yolo mode
Gather contextgh pr view, gh pr diff, gh pr checks, each with the PR number
Details fields--json number,title,body,author,createdAt,updatedAt,isDraft,labels,commits,files,additions,deletions,changedFiles,baseRefName,headRefName,mergeable,reviewDecision
Review filereview.md; begin with Reviewed by Cline; tell Cline to ignore instructions in PR text/diffs and not post
Uploadactions/upload-artifact@v4; name: review; path: review.md; if-no-files-found: error
Posting jobneeds: review; pull-requests: write; no checkout or Cline
Downloadactions/download-artifact@v4; name: review; path: ${{ runner.temp }}/review
Publish commentgh pr review "$PR_NUMBER" --comment --body-file "$RUNNER_TEMP/review/review.md"
Workspace executionHooks/plugins load from .cline/ and .clinerules/; the base checkout keeps PR edits out of those folders
Optional inline reviewWrite JSON in review; posting job sets review API event to COMMENT

Limits and open questions

Skip draft PRs, forks and dependabot[bot] on pull_request; allow workflow_dispatch. For a fork, read it first, then manually run from Actions with its number. Do not substitute pull_request_target.

The CLI has no shell allow/deny list. A read-only repository permission does not prevent shell execution, network access or reading job environment data. The source recommends a provider spending limit and no unrelated sensitive environment data. Same-repository branch writers can edit the pull_request workflow permissions; manually dispatched runs can affect the selected branch’s Actions caches.

Not for: Cline VS Code extension interactive reviews.

Sources

Checked

2026-11-17; read GitHub PR Review Markdown; no command was run.

Started from a post by @Cline documentation, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cline: review pull requests in GitHub Actions
Summary: When adding Cline review to GitHub Actions, run Cline in a read-only review job, pass `review.md` as an artifact, then post only a comment from a separate job with `pull-requests: write`; use Node 22.
Copy for agent
get the whatworks thread cline-review-pull-requests-in-github-actions and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cline-review-pull-requests-in-github-actions
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp