Skip to content

Commit df1810a

Browse files
committed
Use CodeBoarding app token for dogfood comments
1 parent 2164398 commit df1810a

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/codeboarding.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,25 @@ jobs:
3636
# The action reads its scripts via github.action_path and checks the engine
3737
# and target repo into subdirectories, so this local checkout is untouched.
3838
- uses: actions/checkout@v4
39+
- name: Detect CodeBoarding GitHub App credentials
40+
id: codeboarding-app-config
41+
shell: bash
42+
env:
43+
APP_ID: ${{ vars.CODEBOARDING_APP_ID }}
44+
PRIVATE_KEY: ${{ secrets.CODEBOARDING_APP_PRIVATE_KEY }}
45+
run: |
46+
if [ -n "$APP_ID" ] && [ -n "$PRIVATE_KEY" ]; then
47+
echo "enabled=true" >> "$GITHUB_OUTPUT"
48+
else
49+
echo "enabled=false" >> "$GITHUB_OUTPUT"
50+
fi
51+
- uses: actions/create-github-app-token@v3
52+
id: codeboarding-app-token
53+
if: steps.codeboarding-app-config.outputs.enabled == 'true'
54+
with:
55+
app-id: ${{ vars.CODEBOARDING_APP_ID }}
56+
private-key: ${{ secrets.CODEBOARDING_APP_PRIVATE_KEY }}
3957
- uses: ./
4058
with:
59+
github_token: ${{ steps.codeboarding-app-token.outputs.token || github.token }}
4160
llm_api_key: ${{ secrets.OPENROUTER_API_KEY }}

0 commit comments

Comments
 (0)