Skip to content

Commit 02ee178

Browse files
ci: use Google API key for CodeBoarding
Amp-Thread-ID: https://ampcode.com/threads/T-019ed0f0-d9f9-75da-a034-cbfda2dcd6d1 Co-authored-by: Amp <amp@ampcode.com>
1 parent bbe48c5 commit 02ee178

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/codeboarding-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ on:
2222

2323
permissions:
2424
contents: write # commit the generated baseline + docs to the branch
25-
id-token: write # mint a GitHub OIDC token for the free hosted tier (omit if you set a key/license)
2625

2726
concurrency:
2827
# Serialize against itself so a push landing mid-run can't make two commits.
@@ -37,5 +36,6 @@ jobs:
3736
- uses: CodeBoarding/CodeBoarding-action@v1
3837
with:
3938
mode: sync
40-
license_key: ${{ secrets.CODEBOARDING_LICENSE }}
39+
llm_provider: google
40+
llm_api_key: ${{ secrets.GOOGLE_API_KEY }}
4141
force_full: ${{ inputs.force_full || false }}

.github/workflows/codeboarding.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,24 @@ jobs:
2222
contents: read # check out the repo + read the committed baseline (no writes in review mode)
2323
pull-requests: write # post the architecture-diff PR comment
2424
issues: write # the /codeboarding issue_comment trigger + comment API
25-
id-token: write # mint a GitHub OIDC token for the free hosted tier (write is the only level for id-token)
2625
if: >
2726
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.draft == false) ||
2827
(github.event_name == 'issue_comment' && github.event.issue.pull_request != null &&
2928
startsWith(github.event.comment.body, '/codeboarding') &&
3029
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association))
3130
steps:
31+
- name: Verify Google API key secret is available
32+
shell: bash
33+
env:
34+
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
35+
run: |
36+
if [ -z "${GOOGLE_API_KEY}" ]; then
37+
echo "::error::GOOGLE_API_KEY secret is missing or empty."
38+
exit 1
39+
fi
40+
echo "GOOGLE_API_KEY secret is present."
41+
3242
- uses: CodeBoarding/CodeBoarding-action@v1
3343
with:
34-
license_key: ${{ secrets.CODEBOARDING_LICENSE }}
44+
llm_provider: google
45+
llm_api_key: ${{ secrets.GOOGLE_API_KEY }}

0 commit comments

Comments
 (0)