Skip to content

Commit d3697dc

Browse files
committed
chore(ci): Replace GH_CQ_BOT PAT with GitHub App tokens
Replace the non-expiring personal access token (GH_CQ_BOT) with short-lived tokens from the cloudquery-ci GitHub App using actions/create-github-app-token@v3.
1 parent 146bb00 commit d3697dc

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/.kodiak.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version = 1
22

33
[approve]
4-
auto_approve_usernames = ["cq-bot"]
4+
auto_approve_usernames = ["cloudquery-ci"]
55

66
[merge.message]
77
body = "pull_request_body"

.github/workflows/release_pr.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ jobs:
1010
release-please:
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Generate GitHub App token
14+
id: app-token
15+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3
16+
with:
17+
app-id: ${{ secrets.CQ_APP_ID }}
18+
private-key: ${{ secrets.CQ_APP_PRIVATE_KEY }}
19+
permission-contents: write
20+
permission-pull-requests: write
1321
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4
1422
id: release
1523
with:
16-
token: ${{ secrets.GH_CQ_BOT }}
24+
token: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)