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

Commit b7535a4

Browse files
authored
ci(secrets): Use GH App instead of PAT CU-86c5y4a84 (#1)
1 parent f9dd3b2 commit b7535a4

2 files changed

Lines changed: 22 additions & 4 deletions

File tree

.github/workflows/deploy-production.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,22 @@ jobs:
2828
steps:
2929
- name: Checkout repository
3030
uses: actions/checkout@v4
31+
- name: Generate token
32+
id: generate-token
33+
uses: actions/create-github-app-token@v2
34+
with:
35+
app-id: ${{ vars.KITTL_CI_APP_ID }}
36+
private-key: ${{ secrets.KITTL_CI_APP_PRIVATE_KEY }}
37+
owner: ${{ github.repository_owner }}
38+
repositories: |
39+
development-applications-config
3140
- name: Checkout helm config Repository
3241
uses: actions/checkout@v4
3342
with:
3443
repository: Kittl/development-applications-config
3544
ref: main
3645
path: helm-config
37-
token: ${{ secrets.GH_PAT }}
46+
token: ${{ steps.generate-token.outputs.token }}
3847
persist-credentials: false
3948
- name: Update Image Version in the related HelmChart values.yaml
4049
uses: fjogeleit/yaml-update-action@v0.14.0
@@ -46,5 +55,5 @@ jobs:
4655
branch: main
4756
createPR: false
4857
message: 'Update Image Version to ${{ needs.build-docker-image.outputs.image-tag }}'
49-
token: ${{ secrets.GH_PAT }}
58+
token: ${{ steps.generate-token.outputs.token }}
5059
workDir: helm-config

.github/workflows/deploy-staging.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,22 @@ jobs:
2828
steps:
2929
- name: Checkout repository
3030
uses: actions/checkout@v4
31+
- name: Generate token
32+
id: generate-token
33+
uses: actions/create-github-app-token@v2
34+
with:
35+
app-id: ${{ vars.KITTL_CI_APP_ID }}
36+
private-key: ${{ secrets.KITTL_CI_APP_PRIVATE_KEY }}
37+
owner: ${{ github.repository_owner }}
38+
repositories: |
39+
development-applications-config
3140
- name: Checkout helm config Repository
3241
uses: actions/checkout@v4
3342
with:
3443
repository: Kittl/development-applications-config
3544
ref: main
3645
path: helm-config
37-
token: ${{ secrets.GH_PAT }}
46+
token: ${{ steps.generate-token.outputs.token }}
3847
persist-credentials: false
3948
- name: Update Image Version in the related HelmChart values.yaml
4049
uses: fjogeleit/yaml-update-action@v0.14.0
@@ -46,5 +55,5 @@ jobs:
4655
branch: main
4756
createPR: false
4857
message: 'Update Image Version to ${{ needs.build-docker-image.outputs.image-tag }}'
49-
token: ${{ secrets.GH_PAT }}
58+
token: ${{ steps.generate-token.outputs.token }}
5059
workDir: helm-config

0 commit comments

Comments
 (0)