File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments