Enhance GitHub Actions workflow for Docker CI image

- Added a step to generate a GitHub App token using the tibdex/github-app-token action, improving authentication for Docker image pushes.
- Updated the Docker push step to use the generated token instead of the default GITHUB_TOKEN, enhancing security and access control during the CI process.
This commit is contained in:
Steven Enamakel
2026-04-06 14:59:02 -07:00
parent 23212f8b76
commit 521fc7805d
+8 -1
View File
@@ -18,6 +18,13 @@ jobs:
name: Build and push CI image
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.XGITHUB_APP_ID }}
private_key: ${{ secrets.XGITHUB_APP_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v4
@@ -26,7 +33,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ steps.app-token.outputs.token }}
- name: Build and push
uses: docker/build-push-action@v6