diff --git a/.github/workflows/cli.yaml b/.github/workflows/cli.yaml index 5f41722f2b..deb498eaa6 100644 --- a/.github/workflows/cli.yaml +++ b/.github/workflows/cli.yaml @@ -35,9 +35,11 @@ jobs: go-version: 1.18 - name: Cache Go modules - uses: actions/cache@d9747005de0f7240e5d35a68dca96b3f41b8b340 # v1.2.0 + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # pin@v3 with: - path: ~/go/pkg/mod + path: | + ~/.cache/go-build + ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- diff --git a/.github/workflows/e2e-autogen-internals.yaml b/.github/workflows/e2e-autogen-internals.yaml index d10797ee1f..8ef57eb96e 100644 --- a/.github/workflows/e2e-autogen-internals.yaml +++ b/.github/workflows/e2e-autogen-internals.yaml @@ -47,9 +47,11 @@ jobs: uses: helm/chart-testing-action@b0d4458c71155b54fcf33e11dd465dc923550009 # v2.0.1 - name: Cache Go modules - uses: actions/cache@d9747005de0f7240e5d35a68dca96b3f41b8b340 # v1.2.0 + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # pin@v3 with: - path: ~/go/pkg/mod + path: | + ~/.cache/go-build + ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index d5d5a76c55..6d617f1109 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -45,9 +45,11 @@ jobs: uses: helm/chart-testing-action@b0d4458c71155b54fcf33e11dd465dc923550009 # v2.0.1 - name: Cache Go modules - uses: actions/cache@d9747005de0f7240e5d35a68dca96b3f41b8b340 # v1.2.0 + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # pin@v3 with: - path: ~/go/pkg/mod + path: | + ~/.cache/go-build + ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- diff --git a/.github/workflows/image-build.yaml b/.github/workflows/image-build.yaml index 5de16cd351..41d988923e 100644 --- a/.github/workflows/image-build.yaml +++ b/.github/workflows/image-build.yaml @@ -26,9 +26,11 @@ jobs: go-version: 1.18 - name: Cache Go modules - uses: actions/cache@d9747005de0f7240e5d35a68dca96b3f41b8b340 # v1.2.0 + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # pin@v3 with: - path: ~/go/pkg/mod + path: | + ~/.cache/go-build + ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- @@ -76,9 +78,11 @@ jobs: go-version: 1.18 - name: Cache Go modules - uses: actions/cache@d9747005de0f7240e5d35a68dca96b3f41b8b340 # v1.2.0 + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # pin@v3 with: - path: ~/go/pkg/mod + path: | + ~/.cache/go-build + ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- @@ -102,9 +106,11 @@ jobs: go-version: 1.18 - name: Cache Go modules - uses: actions/cache@d9747005de0f7240e5d35a68dca96b3f41b8b340 # v1.2.0 + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # pin@v3 with: - path: ~/go/pkg/mod + path: | + ~/.cache/go-build + ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- @@ -137,9 +143,11 @@ jobs: go-version: 1.18 - name: Cache Go modules - uses: actions/cache@d9747005de0f7240e5d35a68dca96b3f41b8b340 # v1.2.0 + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # pin@v3 with: - path: ~/go/pkg/mod + path: | + ~/.cache/go-build + ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c81f259a17..93961da8f6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -72,9 +72,11 @@ jobs: go-version: 1.18 - name: Cache Go modules - uses: actions/cache@d9747005de0f7240e5d35a68dca96b3f41b8b340 # v1.2.0 + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # pin@v3 with: - path: ~/go/pkg/mod + path: | + ~/.cache/go-build + ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- diff --git a/.github/workflows/reuse.yaml b/.github/workflows/reuse.yaml index ba64dd149c..62730ad3cf 100644 --- a/.github/workflows/reuse.yaml +++ b/.github/workflows/reuse.yaml @@ -52,9 +52,11 @@ jobs: cosign-release: 'v1.11.0' - name: Cache Go modules - uses: actions/cache@d9747005de0f7240e5d35a68dca96b3f41b8b340 # v1.2.0 + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # pin@v3 with: - path: ~/go/pkg/mod + path: | + ~/.cache/go-build + ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 31e479341d..a8ccaa4fe1 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -87,9 +87,11 @@ jobs: go-version: 1.18 - name: Cache Go modules - uses: actions/cache@d9747005de0f7240e5d35a68dca96b3f41b8b340 # pin@v1.2.0 + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # pin@v3 with: - path: ~/go/pkg/mod + path: | + ~/.cache/go-build + ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go-