Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit 4ee27fc

Browse files
authored
chore(ci): Replace GH_CQ_BOT PAT with GitHub App tokens (#41)
* 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. * Add Renovate configuration file * Update KICS GitHub Action version
1 parent 17bd429 commit 4ee27fc

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

.github/renovate.json5

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
extends: ["github>cloudquery/.github//.github/renovate-default.json5"],
3+
}

.github/workflows/release_please.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ jobs:
1616
release-please:
1717
runs-on: ubuntu-latest
1818
steps:
19+
- name: Generate GitHub App token
20+
id: app-token
21+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3
22+
with:
23+
app-id: ${{ secrets.CQ_APP_ID }}
24+
private-key: ${{ secrets.CQ_APP_PRIVATE_KEY }}
25+
permission-contents: write
26+
permission-pull-requests: write
1927
- uses: googleapis/release-please-action@v4
2028
id: release
2129
with:
22-
token: ${{ secrets.GH_CQ_BOT }}
30+
token: ${{ steps.app-token.outputs.token }}

.github/workflows/terraform.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,20 @@ jobs:
5050
working-directory: ${{ matrix.module }}
5151

5252
steps:
53+
- name: Generate GitHub App token
54+
id: app-token
55+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3
56+
with:
57+
app-id: ${{ secrets.CQ_APP_ID }}
58+
private-key: ${{ secrets.CQ_APP_PRIVATE_KEY }}
59+
permission-pull-requests: write
5360
- name: Checkout
5461
uses: actions/checkout@v4
5562
with:
5663
ref: ${{ github.event.pull_request.head.ref }}
5764
repository: ${{ github.event.pull_request.head.repo.full_name }}
5865
fetch-depth: 0
59-
token: ${{ secrets.GH_CQ_BOT }}
66+
token: ${{ steps.app-token.outputs.token }}
6067

6168
- name: Configure Git for Pull Request
6269
if: github.event_name == 'pull_request'
@@ -140,7 +147,7 @@ jobs:
140147
echo "KICS_RESULTS_DIR=$results_dir" >> $GITHUB_ENV
141148
142149
- name: Run KICS scan
143-
uses: checkmarx/kics-github-action@v1.7.0
150+
uses: checkmarx/kics-github-action@05aa5eb70eede1355220f4ca5238d96b397e30a6 # v2.1.20
144151
with:
145152
path: ${{ matrix.module }}
146153
config_path: .kics.config

0 commit comments

Comments
 (0)