From 72c5815346e8bf7e118cc988a2506ea47fb25aaa Mon Sep 17 00:00:00 2001 From: lispking Date: Sat, 13 Jan 2024 16:05:40 +0800 Subject: [PATCH 1/2] ! use AMP_BUILDPACKS_BOT_GITHUB_TOKEN instead of GITHUB_TOKEN --- .github/pipeline-descriptor.yml | 6 +++--- .github/workflows/pb-update-pipeline.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/pipeline-descriptor.yml b/.github/pipeline-descriptor.yml index 7d05437..bdd3fab 100644 --- a/.github/pipeline-descriptor.yml +++ b/.github/pipeline-descriptor.yml @@ -1,13 +1,13 @@ github: username: ${{ github.actor }} - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }} package: repositories: ["ghcr.io/amp-buildpacks/leo-dist"] register: true - registry_token: ${{ secrets.GITHUB_TOKEN }} + registry_token: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }} docker_credentials: - registry: ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/pb-update-pipeline.yml b/.github/workflows/pb-update-pipeline.yml index 0179bba..1b1d17d 100644 --- a/.github/workflows/pb-update-pipeline.yml +++ b/.github/workflows/pb-update-pipeline.yml @@ -67,7 +67,7 @@ jobs: printf "release-notes<<%s\n%s\n%s\n" "${DELIMITER}" "${RELEASE_NOTES}" "${DELIMITER}" >> "${GITHUB_OUTPUT}" # see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings env: DESCRIPTOR: .github/pipeline-descriptor.yml - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + AMP_BUILDPACKS_BOT_GITHUB_TOKEN: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }} - uses: peter-evans/create-pull-request@v5 with: author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> @@ -87,4 +87,4 @@ jobs: labels: semver:patch, type:task signoff: true title: Bump pipeline from ${{ steps.pipeline.outputs.old-version }} to ${{ steps.pipeline.outputs.new-version }} - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }} From 60c975b43e507542190c37a22a78e0ce70a2e6d4 Mon Sep 17 00:00:00 2001 From: lispking Date: Sat, 13 Jan 2024 16:08:33 +0800 Subject: [PATCH 2/2] ! update review --- .github/workflows/pb-update-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pb-update-pipeline.yml b/.github/workflows/pb-update-pipeline.yml index 1b1d17d..52a306b 100644 --- a/.github/workflows/pb-update-pipeline.yml +++ b/.github/workflows/pb-update-pipeline.yml @@ -67,7 +67,7 @@ jobs: printf "release-notes<<%s\n%s\n%s\n" "${DELIMITER}" "${RELEASE_NOTES}" "${DELIMITER}" >> "${GITHUB_OUTPUT}" # see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings env: DESCRIPTOR: .github/pipeline-descriptor.yml - AMP_BUILDPACKS_BOT_GITHUB_TOKEN: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }} - uses: peter-evans/create-pull-request@v5 with: author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>