Repository navigation
ci: pin PR-Agent by image digest and inline Robin with a pinned action #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,53 @@ | ||
| name: Robin | ||
|
|
||
| # Hardening (2026-10-18): the review job of antongulin/robin's reusable workflow | ||
| # (.github/workflows/review.yml at v2.12.0, fc0bf915) is copied here, because that | ||
| # workflow calls `antongulin/robin@main` and hands it the LLM_* secrets -- pinning the | ||
| # reusable workflow alone would still run unreviewed code with them. The action is | ||
| # pinned to the same release commit; update it on purpose. The job condition is | ||
| # upstream's: a comment starts it only on a pull request, only for the repo owner, a | ||
| # member or a collaborator, and only for a Robin command. Inputs not listed keep | ||
| # the action's defaults. | ||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, ready_for_review] | ||
| issue_comment: | ||
| types: [created] | ||
|
|
||
| permissions: | ||
| actions: read | ||
| actions: read # lets Robin detect when a cancelled run was superseded by a newer one | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| review: | ||
| uses: antongulin/robin/.github/workflows/review.yml@main | ||
| secrets: | ||
| LLM_API_KEY: ${{ secrets.LLM_API_KEY }} | ||
| LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }} | ||
| LLM_MODEL: ${{ secrets.LLM_MODEL }} | ||
| if: | | ||
| github.event_name == 'pull_request' || | ||
| ( | ||
| github.event_name == 'issue_comment' && | ||
| github.event.issue.pull_request && | ||
| contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association) && | ||
| ( | ||
| startsWith(github.event.comment.body, '/review') || | ||
| startsWith(github.event.comment.body, '/robin') || | ||
| startsWith(github.event.comment.body, '/summary') || | ||
| startsWith(github.event.comment.body, '/help') | ||
| ) | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| ) | ||
| concurrency: | ||
| group: robin-${{ github.event.pull_request.number || github.event.issue.number }}-${{ github.workflow }} | ||
| cancel-in-progress: true | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 45 | ||
| steps: | ||
| - name: Robin | ||
| uses: antongulin/robin@fc0bf915b634bf2f8b88ff1392acefdfb54e28d9 # v2.12.0 | ||
| with: | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| github-token: ${{ github.token }} | ||
| llm-api-key: ${{ secrets.LLM_API_KEY }} | ||
| llm-base-url: ${{ secrets.LLM_BASE_URL }} | ||
| model: ${{ secrets.LLM_MODEL }} | ||
| # The reusable workflow sent false when its input was left out; the action's | ||
| # own default is true (a high finding would post REQUEST_CHANGES). Keep the | ||
| # comment-only review mode. | ||
| request-changes: false | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.