use pat secret in repo

This commit is contained in:
Chris Ainsworth-Patrick
2023-08-18 16:02:27 +01:00
parent 69ad587e88
commit 1871153199

View File

@@ -46,13 +46,6 @@ jobs:
tags: |
latest
- name: Generate app token
id: app_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.HUB_PLATFORM_APP_ID }}
private_key: ${{ secrets.HUB_PLATFORM_APP_PRIVATE_KEY }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
@@ -65,4 +58,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
"gitghatoken=${{ steps.app_token.outputs.token }}"
"gitghatoken=${{ secrets.GHA_REPO_TOKEN }}"