Skip to content

Commit 86c7687

Browse files
committed
fix: use secrets context for app_id and pass inputs to actions
1 parent c68f1c0 commit 86c7687

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

.github/workflows/test-continue-agent.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
continue-api-key: ${{ secrets.CONTINUE_API_KEY }}
2828
continue-org: "test-org"
2929
continue-config: "test-org/review-bot"
30+
app_id: ${{ secrets.CONTINUE_APP_ID }}
31+
app_private_key: ${{ secrets.CONTINUE_APP_PRIVATE_KEY }}
3032
# use_github_app defaults to true
3133

3234
# Test without GitHub App (fallback mode)
@@ -62,4 +64,6 @@ jobs:
6264
continue-api-key: ${{ secrets.CONTINUE_API_KEY }}
6365
continue-org: "test-org"
6466
continue-config: "test-org/review-bot"
67+
app_id: ${{ secrets.CONTINUE_APP_ID }}
68+
app_private_key: ${{ secrets.CONTINUE_APP_PRIVATE_KEY }}
6569
# use_github_app defaults to true

actions/detailed-review/action.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,23 @@ inputs:
1616
description: "Use Continue Agent GitHub App for bot identity (requires app installation)"
1717
default: "true"
1818
required: false
19+
app_id:
20+
description: "GitHub App ID (required if use_github_app is true)"
21+
required: false
22+
app_private_key:
23+
description: "GitHub App Private Key (required if use_github_app is true)"
24+
required: false
1925

2026
runs:
2127
using: "composite"
2228
steps:
2329
- name: Generate Continue Agent App Token
24-
if: inputs.use_github_app == 'true'
30+
if: inputs.use_github_app == 'true' && inputs.app_id != '' && inputs.app_private_key != ''
2531
id: app-token
2632
uses: actions/create-github-app-token@v2
2733
with:
28-
app-id: ${{ vars.CONTINUE_APP_ID }}
29-
private-key: ${{ secrets.CONTINUE_APP_PRIVATE_KEY }}
34+
app-id: ${{ inputs.app_id }}
35+
private-key: ${{ inputs.app_private_key }}
3036
continue-on-error: true
3137

3238
- name: Verify App Installation

actions/general-review/action.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,23 @@ inputs:
1616
description: "Use Continue Agent GitHub App for bot identity (requires app installation)"
1717
default: "true"
1818
required: false
19+
app_id:
20+
description: "GitHub App ID (required if use_github_app is true)"
21+
required: false
22+
app_private_key:
23+
description: "GitHub App Private Key (required if use_github_app is true)"
24+
required: false
1925

2026
runs:
2127
using: "composite"
2228
steps:
2329
- name: Generate Continue Agent App Token
24-
if: inputs.use_github_app == 'true'
30+
if: inputs.use_github_app == 'true' && inputs.app_id != '' && inputs.app_private_key != ''
2531
id: app-token
2632
uses: actions/create-github-app-token@v2
2733
with:
28-
app-id: ${{ vars.CONTINUE_APP_ID }}
29-
private-key: ${{ secrets.CONTINUE_APP_PRIVATE_KEY }}
34+
app-id: ${{ inputs.app_id }}
35+
private-key: ${{ inputs.app_private_key }}
3036
continue-on-error: true
3137

3238
- name: Verify App Installation

0 commit comments

Comments
 (0)