From 03921e5c73137a5e6f4af43db79f1adef892615a Mon Sep 17 00:00:00 2001 From: jakobmoellerdev Date: Fri, 29 Nov 2024 19:23:35 +0100 Subject: [PATCH] fix: allow cache push through PAT --- .github/workflows/components.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/components.yaml b/.github/workflows/components.yaml index 9cf04be0c3..a770c9876b 100644 --- a/.github/workflows/components.yaml +++ b/.github/workflows/components.yaml @@ -33,7 +33,7 @@ env: components: '["ocmcli", "helminstaller", "helmdemo", "subchartsdemo", "ecrplugin"]' IMAGE_PLATFORMS: 'linux/amd64 linux/arm64' PLATFORMS: 'windows/amd64 darwin/arm64 darwin/amd64 linux/amd64 linux/arm64' - BUILDX_CACHE_PUSH: ${{ github.ref == 'refs/heads/main' }} + BUILDX_CACHE_PUSH: true BUILDX_CACHE_REF_BASE: ghcr.io/${{ github.repository }}/buildx-cache jobs: @@ -50,6 +50,9 @@ jobs: input: ${{ env.components }} build: + permissions: + contents: read + packages: write name: "Build" needs: define-matrix strategy: