From b888bc2e335277eb2b9126440fa81f69f6fee5d0 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 4 Mar 2024 20:46:05 +0100 Subject: [PATCH] ci: Switch to automatic token This removes the need to manage the secrets explicitly. Signed-off-by: Jan Kiszka --- .github/workflows/master.yml | 4 ++-- .github/workflows/next.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 5b549039..428cedb2 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -28,8 +28,8 @@ jobs: - name: Set up docker build uses: ./.github/actions/docker-init with: - deploy-user: ${{ secrets.PACKAGE_DEPLOY_USER }} - deploy-token: ${{ secrets.PACKAGE_DEPLOY_TOKEN }} + deploy-user: ${{ github.actor }} + deploy-token: ${{ secrets.GITHUB_TOKEN }} - name: Build ${{ matrix.image-name }} image uses: docker/build-push-action@v5 if: ${{ env.PUSH_MASTER }} diff --git a/.github/workflows/next.yml b/.github/workflows/next.yml index f510838b..b414f249 100644 --- a/.github/workflows/next.yml +++ b/.github/workflows/next.yml @@ -74,8 +74,8 @@ jobs: - name: Set up docker build uses: ./.github/actions/docker-init with: - deploy-user: ${{ secrets.PACKAGE_DEPLOY_USER }} - deploy-token: ${{ secrets.PACKAGE_DEPLOY_TOKEN }} + deploy-user: ${{ github.actor }} + deploy-token: ${{ secrets.GITHUB_TOKEN }} - name: Build amd64 ${{ matrix.image-name }} image uses: docker/build-push-action@v5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f185e273..eb1e7337 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,8 +20,8 @@ jobs: - name: Set up docker build uses: ./.github/actions/docker-init with: - deploy-user: ${{ secrets.PACKAGE_DEPLOY_USER }} - deploy-token: ${{ secrets.PACKAGE_DEPLOY_TOKEN }} + deploy-user: ${{ github.actor }} + deploy-token: ${{ secrets.GITHUB_TOKEN }} - name: Build ${{ matrix.image-name }} image uses: docker/build-push-action@v5 with: