Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/robin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robinreview.dev
agent-mode: auto
agent-max-turns: 40
43 changes: 43 additions & 0 deletions .github/workflows/robin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Robin

on:
pull_request:
types: [opened, reopened, ready_for_review, synchronize]
issue_comment:
types: [created]

permissions:
contents: read

jobs:
review:
if: >-
!endsWith(github.actor, '[bot]') && (
github.event_name == 'pull_request' ||
(github.event.issue.pull_request &&
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association) &&
(startsWith(github.event.comment.body, '/robin') ||
startsWith(github.event.comment.body, '/review') ||
startsWith(github.event.comment.body, '/summary') ||
startsWith(github.event.comment.body, '/help')))
)
runs-on: blacksmith-2vcpu-ubuntu-2604
timeout-minutes: 45
concurrency:
group: robin-${{ github.event.pull_request.number || github.event.issue.number }}-${{ github.workflow }}
cancel-in-progress: true
steps:
- uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
id: app-token
with:
client-id: ${{ secrets.ROBIN_CLIENT_ID }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robin — ⚠️ MEDIUM · confidence: high

For pull_request events from forks, GitHub withholds repository secrets. The app-token step therefore cannot receive ROBIN_CLIENT_ID (and the later LLM_API_KEY is also unavailable), so the automatic review job fails before Robin can review the PR.

Recommendation: Choose an explicit safe policy for fork PRs: skip automatic reviews and rely on the authorized issue-comment path, or provide a separately secured mechanism for reviewing them. Do not switch to pull_request_target without ensuring untrusted PR content cannot execute with these credentials.

private-key: ${{ secrets.ROBIN_PRIVATE_KEY }}
permission-contents: read
permission-actions: read
permission-pull-requests: write
- uses: antongulin/robin@c307d49e53284c3c0e05c9a764ab9e8cce6f7dff # v2.13.3
with:
github-token: ${{ steps.app-token.outputs.token }}
llm-api-key: ${{ secrets.LLM_API_KEY }}
llm-base-url: ${{ vars.LLM_BASE_URL }}
model: ${{ vars.LLM_MODEL }}
Loading