In short.
GitHub PR Review is a guide for developers adding Cline reviews to GitHub Actions, but limiting GitHub write permissions does not stop the AI from running shell commands or accessing secrets. Its two jobs generate a review from base-branch context and pull-request data, then post it through a separate job with permission to comment. Automatic runs cover eligible same-repository pull requests when opened or marked ready for review; forks require manual dispatch. Costs, current model compatibility and review effectiveness are unknown, and nothing was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected page at [https://docs.cline.bot/cli/samples/github-pr-review.md], including the workflow example, prerequisites, setup, permission and authentication explanations, autonomous execution risks, fork handling, customization and Mintlify hosting notice. Linked pages, including the documentation index and GitHub reviews API documentation, are excluded. No commands or code were executed. Runtime behavior, review quality, security effectiveness, current compatibility and costs remain unassessed.
The overview
Identity
The resource is the GitHub PR Review sample in Cline's CLI documentation at [https://docs.cline.bot/cli/samples/github-pr-review.md]. It teaches how to connect Cline CLI, GitHub CLI and GitHub Actions to produce pull-request review comments.
Its scope is one documented integration example, including workflow YAML, authentication instructions, permission explanations and customization options.
Assessment
The guide provides enough configuration and explanation to support an implementation attempt by someone familiar with GitHub Actions. Its strongest design feature is separating the AI job from the job that publishes its output, with the publishing command fixed to create a comment.
That separation limits GitHub writes through the supplied token. It does not establish a secure sandbox for Cline, reliable resistance to instructions embedded in pull requests, or accurate review findings. Adoption should depend on whether the documented access to code, secrets and the internet is acceptable.
Users
The main audience is repository maintainers and developers who want an additional advisory review in their existing GitHub workflow. The explanations help beginners understand the moving parts, but configuring Actions permissions, provider credentials and command-line authentication still requires technical familiarity.
The automatic path primarily suits repositories receiving pull requests from their own branches. Fork-heavy projects need the guide's separate manual process because the sample skips automatic reviews of fork and Dependabot pull requests.
Capabilities
The supplied prompt asks Cline to retrieve pull-request metadata, the diff and CI checks through GitHub CLI, then read base-branch files for context. It requests feedback on logic errors, edge cases, security vulnerabilities, performance and consistency with repository patterns.
The default output is a Markdown file posted as a pull-request review comment. The sample does not approve pull requests. Inline comments require an extension that generates structured data and posts it through the GitHub reviews API.
Using it
Requirements
The documented prerequisites are a GitHub repository with Actions enabled, an AI provider API key stored as a repository secret and the GitHub token supplied by Actions. The example uses Ubuntu runners, Node.js 22, npm, Cline CLI, GitHub CLI and artifact upload/download actions.
The review job requests read access to contents, pull requests, issues, checks, statuses and Actions. The posting job requests pull-request write access. Compatibility with a particular organization's runner restrictions, network controls or Actions policies is not assessed.
Mechanism
For an automatic run, the review job checks out the pull request's base commit with persisted checkout credentials disabled. This keeps workspace hooks and plugins in .cline/ and .clinerules/ on the base branch while Cline reads proposed changes through gh pr diff.
Cline runs with --auto-approve true and writes review.md. An artifact transfers that file to the posting job, which does not check out repository code or run Cline. It downloads the artifact outside the workspace and calls gh pr review with --comment and --body-file.
Concurrency is grouped by pull-request number, with newer runs configured to cancel an in-progress run for the same number.
Setup
The documented setup is to create .github/workflows/cline-pr-review.yml using the supplied YAML, add the matching provider secret in repository Actions settings and configure provider authentication. The authentication command requires both --apikey and --modelid.
The sample uses Anthropic and the literal model identifier claude-opus-5-5. That identifier is an example from the page; its availability and compatibility are not established. Other providers require corresponding authentication flags and secrets. No setup steps were executed.
Example
For a non-draft pull request opened from a branch in the same repository by someone other than Dependabot, the sample is configured to start the review job. Cline is asked to inspect the change and write review.md, beginning with the attribution Reviewed by Cline.
If generation and artifact transfer succeed, the second job posts that text as a review comment. A maintainer can also start a run manually by supplying pr_number. These are intended behaviors shown by the configuration, not observed results.
Assessment & evidence
Limitations
The page explicitly states that autonomous Cline can run any shell command and has no shell-command allow or deny list. Pull-request text could redirect its actions or influence the review. The read-only GitHub token does not remove access to source code, the provider key or the internet.
The permission split also depends on the workflow definition: the page notes that contributors who can push repository branches can alter the pull request's workflow file and permissions. Base-branch checkout prevents proposed hooks and plugins from being loaded, but existing base-branch hooks and plugins still run.
Automatic triggers include opened and ready_for_review, but omit synchronize, so the sample does not automatically rerun for every subsequent push. Drafts, forks and Dependabot pull requests are skipped. Manual fork reviews retain provider-key access and can write to the selected branch's Actions caches. No measured review accuracy, large-change behavior or security-test results are supplied.
Design rationale
Separating review generation from publication reduces the authority available to the component reading potentially hostile pull-request text. Fixing the publishing command to COMMENT also prevents the generated file from choosing an approval event.
Checking out the base branch provides repository context without loading hooks added by the proposed change. These controls address specific paths for unwanted behavior, while leaving substantial shell, network and secret access. The design therefore supports advisory feedback with human review; improvements in speed or quality remain unestablished.
Alternatives
Within this example, developers can change the provider, adjust the review prompt's emphasis, use manual dispatch or extend publication to inline comments. The inline-comment extension needs a JSON output file and a separate API posting step with the event fixed to COMMENT.
The page provides no comparison with other review products or human-only review. Relative accuracy, cost and maintenance effort are unknown.
Evidence
The evidence is the complete selected Cline documentation page at [https://docs.cline.bot/cli/samples/github-pr-review.md]. It contains workflow code and explanations of setup, permissions, autonomous execution, forks and customization.
The source snapshot has SHA-256 72b1a90b762b54b899242749c91b229730dbd2e3f4ae295675c63c1ce96aa4b0. The page supplies no execution logs, benchmarks or independent security evaluation. Its descriptions establish the documented design, not demonstrated runtime outcomes.
Access & freshness
Costs
The page provides no Cline price, provider token rates, expected token consumption or GitHub runner and artifact charges. Total cost and typical cost per pull request are unknown.
The sample sets a 60-minute review timeout and a 5-minute posting timeout; these are execution limits, not spending caps. The documentation recommends using a provider key with a spending limit.
Rights
The supplied page contains no explicit license or reuse grant for its documentation or workflow example. Redistribution rights and applicable Cline licensing terms are not established by this evidence. The Mintlify hosting notice does not supply those terms.
The selected provider's terms for source-code processing, retention, training use and generated output are also unspecified.
Freshness
The source was captured at 2026-11-15T01:08:45.782Z. No publication or last-update date appears in the supplied page.
The example installs Cline without a package-version pin and references v4 major tags for its GitHub actions. Current CLI behavior, provider identifiers, model availability and compatibility with those dependencies are unverified.
Next steps
Before adopting the example, confirm the chosen CLI, provider and model configuration; inspect base-branch Cline hooks and plugins; and decide whether the job's documented access fits the repository. Follow the page's recommendation to provide only the necessary provider secret and apply a spending limit.
An initial evaluation could use a non-sensitive repository and a known change to assess authentication, comment publication and finding quality. Decide whether later commits need an additional trigger. For forks, the guide calls for reading the pull request before manual dispatch and warns against switching to pull_request_target. None of these evaluations has been performed.
