From ccc0ebae70febe75a111767304299e4a1e713f79 Mon Sep 17 00:00:00 2001 From: Thomas <9749173+uhthomas@users.noreply.github.com> Date: Thu, 18 Feb 2021 16:57:47 +0000 Subject: [PATCH] Swap workflow credentials --- .github/workflows/release.yml | 6 +++++- .github/workflows/test.yml | 9 --------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85cae81f..8285297c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,10 +10,14 @@ jobs: - uses: actions/checkout@v2 - name: Install bazelisk run: curl -L "https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/bazelisk-linux-amd64" | install -D /dev/stdin "${GITHUB_WORKSPACE}/bin/bazel" + - uses: docker/login-action@v1 + with: + username: uhthomas + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - uses: docker/login-action@v1 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: $GITHUB_ACTOR password: ${{ secrets.CR_PAT }} - run: bazel run //cmd/kipp:push env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bffa546c..46c62659 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,13 +8,4 @@ jobs: - uses: actions/checkout@v2 - name: Install bazelisk run: curl -L "https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/bazelisk-linux-amd64" | install -D /dev/stdin "${GITHUB_WORKSPACE}/bin/bazel" - - uses: docker/login-action@v1 - with: - username: uhthomas - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: $GITHUB_ACTOR - password: ${{ secrets.CR_PAT }} - run: bazel test //...