Skip to content

Commit eac17a6

Browse files
timvwclaude
andcommitted
ci: integrate timvw-ci-bot GitHub App for workflow triggers
Update CI workflow to use GitHub App authentication instead of default GITHUB_TOKEN. This ensures workflows are triggered when PRs are created by bots like Renovate. Changes: - Add token generation step using actions/create-github-app-token@v1 - Configure checkout action to use generated app token - Apply to all jobs: test, build, lint, cross-compile The BOT_APP_ID and BOT_PRIVATE_KEY secrets must be configured in the repository settings for this to work. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d6cb4ca commit eac17a6

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,17 @@ jobs:
1515
go-version: ['1.21', '1.22', '1.23']
1616

1717
steps:
18+
- name: Generate GitHub App token
19+
id: generate-token
20+
uses: actions/create-github-app-token@v1
21+
with:
22+
app-id: ${{ secrets.BOT_APP_ID }}
23+
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
24+
1825
- name: Checkout code
1926
uses: actions/checkout@v4
27+
with:
28+
token: ${{ steps.generate-token.outputs.token }}
2029

2130
- name: Set up Go
2231
uses: actions/setup-go@v5
@@ -44,8 +53,17 @@ jobs:
4453
runs-on: ubuntu-latest
4554

4655
steps:
56+
- name: Generate GitHub App token
57+
id: generate-token
58+
uses: actions/create-github-app-token@v1
59+
with:
60+
app-id: ${{ secrets.BOT_APP_ID }}
61+
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
62+
4763
- name: Checkout code
4864
uses: actions/checkout@v4
65+
with:
66+
token: ${{ steps.generate-token.outputs.token }}
4967

5068
- name: Set up Go
5169
uses: actions/setup-go@v5
@@ -70,8 +88,17 @@ jobs:
7088
runs-on: ubuntu-latest
7189

7290
steps:
91+
- name: Generate GitHub App token
92+
id: generate-token
93+
uses: actions/create-github-app-token@v1
94+
with:
95+
app-id: ${{ secrets.BOT_APP_ID }}
96+
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
97+
7398
- name: Checkout code
7499
uses: actions/checkout@v4
100+
with:
101+
token: ${{ steps.generate-token.outputs.token }}
75102

76103
- name: Set up Go
77104
uses: actions/setup-go@v5
@@ -88,8 +115,17 @@ jobs:
88115
runs-on: ubuntu-latest
89116

90117
steps:
118+
- name: Generate GitHub App token
119+
id: generate-token
120+
uses: actions/create-github-app-token@v1
121+
with:
122+
app-id: ${{ secrets.BOT_APP_ID }}
123+
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
124+
91125
- name: Checkout code
92126
uses: actions/checkout@v4
127+
with:
128+
token: ${{ steps.generate-token.outputs.token }}
93129

94130
- name: Set up Go
95131
uses: actions/setup-go@v5

0 commit comments

Comments
 (0)