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
8 changes: 8 additions & 0 deletions .github/workflows/continue-detailed-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v2.0.0
Copy link
Collaborator Author

@bdougie bdougie Aug 25, 2025

Choose a reason for hiding this comment

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

This latest v2 provides short live tokens (expire within an hour of the action run).

with:
app-id: ${{ secrets.CONTINUE_APP_ID }}
private-key: ${{ secrets.CONTINUE_APP_PRIVATE_KEY }}

- name: Run Detailed PR Review
uses: continuedev/continue/actions/detailed-review@b3f4b82600f603ca28c65a319b80ec36c4644ed7
with:
continue-api-key: ${{ secrets.CONTINUE_API_KEY }}
continue-org: continuedev
continue-config: continuedev/review-bot
github-token: ${{ steps.app-token.outputs.token }}
8 changes: 8 additions & 0 deletions .github/workflows/continue-general-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v2.0.0
with:
app-id: ${{ secrets.CONTINUE_APP_ID }}
private-key: ${{ secrets.CONTINUE_APP_PRIVATE_KEY }}

- name: Run Continue PR Review Action
uses: continuedev/continue/actions/general-review@b3f4b82600f603ca28c65a319b80ec36c4644ed7
with:
continue-api-key: ${{ secrets.CONTINUE_API_KEY }}
continue-org: "continuedev"
continue-config: "continuedev/review-bot"
github-token: ${{ steps.app-token.outputs.token }}
8 changes: 5 additions & 3 deletions actions/detailed-review/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ inputs:
continue-config:
description: 'Config path to use (e.g., "myorg/review-bot")'
required: true
github-token:
description: 'GitHub token for API access'
required: true

runs:
using: 'composite'
Expand Down Expand Up @@ -79,7 +82,7 @@ runs:
if: env.SKIP_REVIEW != 'true'
shell: bash
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ inputs.github-token }}
run: |
# Get PR number based on event type
if [ "${{ github.event_name }}" = "pull_request" ]; then
Expand Down Expand Up @@ -282,6 +285,7 @@ runs:
if: env.SKIP_REVIEW != 'true'
uses: actions/github-script@v7
with:
github-token: ${{ inputs.github-token }}
script: |
const fs = require('fs');

Expand Down Expand Up @@ -417,8 +421,6 @@ runs:
console.log('Failed to post review:', error.message);
console.log('Error details:', error);
}
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload Review Artifacts
if: env.SKIP_REVIEW != 'true' && always()
Expand Down
6 changes: 5 additions & 1 deletion actions/general-review/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ inputs:
continue-config:
description: 'Config path to use (e.g., "myorg/review-bot")'
required: true
github-token:
description: 'GitHub token for API access'
required: true

runs:
using: 'composite'
Expand Down Expand Up @@ -74,7 +77,7 @@ runs:
if: env.SHOULD_RUN == 'true'
shell: bash
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ inputs.github-token }}
run: |
# Get PR number based on event type
if [ "${{ github.event_name }}" = "pull_request" ]; then
Expand Down Expand Up @@ -251,6 +254,7 @@ EOF
if: env.SHOULD_RUN == 'true' && always()
uses: actions/github-script@v7
with:
github-token: ${{ inputs.github-token }}
script: |
const fs = require('fs');

Expand Down
Loading