From 5978aac242d859204aaa943e319bd9f5a796cc35 Mon Sep 17 00:00:00 2001 From: kentsanggds Date: Thu, 7 Dec 2023 11:15:18 +0000 Subject: [PATCH] Add GITHUB_TOKEN to build-push-action secrets Push was failing without it --- .github/workflows/build-image.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 64f5916..1e0d030 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -51,6 +51,8 @@ jobs: context: ./dynamic push: true tags: alphagov/dynamic-ckan-harvest-source:1.0.0 + secrets: | + GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }} - name: Build and push static if: ${{ inputs.buildType == 'build_push' || github.ref == 'refs/heads/main' }} uses: docker/build-push-action@v5 @@ -58,3 +60,5 @@ jobs: context: ./static push: true tags: alphagov/static-ckan-harvest-source:1.0.0 + secrets: | + GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}