From 166053b3ea618b61131c2a03861e43717f3d327a Mon Sep 17 00:00:00 2001 From: jakobmoellerdev Date: Mon, 11 Nov 2024 16:50:50 +0100 Subject: [PATCH] fix: fixup blackduck scan job --- .github/workflows/blackduck_scan_scheduled.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/blackduck_scan_scheduled.yaml b/.github/workflows/blackduck_scan_scheduled.yaml index 4b2146e628..f7df372298 100644 --- a/.github/workflows/blackduck_scan_scheduled.yaml +++ b/.github/workflows/blackduck_scan_scheduled.yaml @@ -25,6 +25,11 @@ jobs: go-version-file: '${{ github.workspace }}/go.mod' cache: false + - name: Get go environment for use with cache + if: matrix.build-mode == 'manual' + run: | + echo "go_cache=$(go env GOCACHE)" >> $GITHUB_ENV + echo "go_modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV # This step will only reuse the go mod and build cache from main made during the Build, # see push_ocm.yaml => "ocm-cli-latest" Job # This means it never caches by itself and PRs cannot cause cache pollution / thrashing