From bce46d35e893556ac77dda5e6c358f77436feae1 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Tue, 17 Nov 2026 17:53:50 -0500 Subject: [PATCH 1/2] ci: mint the coder-cla App token with Cloud KMS Co-Authored-By: Claude Opus 5.5 --- .github/workflows/cla.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index 110039d..d24382a 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -20,17 +20,22 @@ jobs: (github.event_name == 'pull_request_target' && github.event.pull_request.base.ref == 'main') permissions: pull-requests: write + id-token: write # Cloud KMS signs the coder-cla App's JWT steps: # Writes signatures to coder/cla, which GITHUB_TOKEN can't reach. - name: Generate coder-cla App token id: cla_token - uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + # The App's key is a non-exportable Cloud KMS key; only this workflow, in this environment, + # may sign with it. + uses: coder/github-app-token-action@00eaec58ee1bfea9c8b48655b7ab7470b07739e5 # main 2026-11-17 with: - app-id: ${{ secrets.CODER_CLA_APP_ID }} - private-key: ${{ secrets.CODER_CLA_APP_PRIVATE_KEY }} + client-id: ${{ secrets.CODER_CLA_APP_ID }} + kms-key: ${{ secrets.CODER_CLA_APP_KMS_KEY }} + workload-identity-provider: ${{ secrets.APP_KEYS_WORKLOAD_ID_PROVIDER }} owner: coder repositories: cla - permission-contents: write + permissions: | + contents: write - name: "CLA Assistant" uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1 From 66e76032664e9d7e29ee4c7ae8576672d52094d1 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Tue, 17 Nov 2026 18:06:15 -0500 Subject: [PATCH 2/2] ci: correct the cla job's trigger comment Co-Authored-By: Claude Opus 5.5 --- .github/workflows/cla.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index d24382a..683dacc 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -12,8 +12,9 @@ permissions: jobs: CLAssistant: runs-on: ubuntu-latest - # Holds the coder-cla App key; only main may use it. pull_request_target and - # issue_comment runs use the base branch, so only PRs into main are checked. + # Signs with the coder-cla App key; only main may use it. pull_request_target and + # issue_comment always run the default branch's copy of this workflow, and the + # job only checks PRs into main. environment: cla if: >- (github.event_name == 'issue_comment' && (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA')) ||