From c8920dbe62112787d6cc3ac7ef064f00f4d7b4db Mon Sep 17 00:00:00 2001 From: Sarah Christoff <28318173+schristoff@users.noreply.github.com> Date: Sat, 3 Feb 2024 11:51:50 -0700 Subject: [PATCH] use publish token? Signed-off-by: Sarah Christoff <28318173+schristoff@users.noreply.github.com> --- .github/workflows/build_pipelinesrelease_template.yml | 10 +++++----- .github/workflows/changelog.yaml | 2 +- .github/workflows/close-issues.yaml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_pipelinesrelease_template.yml b/.github/workflows/build_pipelinesrelease_template.yml index 72ac912dbb..75b92d1c86 100644 --- a/.github/workflows/build_pipelinesrelease_template.yml +++ b/.github/workflows/build_pipelinesrelease_template.yml @@ -114,7 +114,7 @@ jobs: with: registry: ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.PUBLISH_TOKEN }} - name: Configure Agent run: go run mage.go ConfigureAgent SetBinExecutable - name: Integration Test @@ -166,12 +166,12 @@ jobs: run: go run mage.go ConfigureAgent UseXBuildBinaries - name: Publish Porter Binaries env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + GITHUB_TOKEN: "${{ secrets.PUBLISH_TOKEN }}" run: mage PublishPorter PublishMixins - Publish-publish_docker: + publish_ghcr: env: DOCKER_REGISTRY: https://ghcr.io/getporter - DOCKER_USERNAME: getporterbot + DOCKER_USERNAME: "${{ secrets.GHCR_USER }}" name: Publish Docker Images needs: - Validate-build @@ -201,6 +201,6 @@ jobs: with: registry: "${{ env.DOCKER_REGISTRY }}" username: "${{ env.DOCKER_USERNAME }}" - password: "${{ secrets.DOCKER_PASSWORD }}" + password: "${{ secrets.PUBLISH_TOKEN }}" - name: Publish Docker Images to ${{inputs.registry}} run: PORTER_REGISTRY=${{inputs.registry}} mage PublishImages diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml index 6b6023c67d..5fdc079f46 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -12,7 +12,7 @@ jobs: with: ref: main fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PUBLISH_TOKEN }} - name: Setup Node.js uses: actions/setup-node@v2 diff --git a/.github/workflows/close-issues.yaml b/.github/workflows/close-issues.yaml index 3487ea91b4..26b943b9fe 100644 --- a/.github/workflows/close-issues.yaml +++ b/.github/workflows/close-issues.yaml @@ -14,6 +14,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Closes issues related to a merged pull request. - uses: ldez/gha-mjolnir@v1.1.0 + uses: ldez/gha-mjolnir@v1.3.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}